Saturday, May 17, 2014

Printer selection problem due to Ne-port numbering

'Written: November 28, 2009
'Author:  Leith Ross
'Summary: Finds a printer by name and returns the printer name and port number.

Function FindPrinter(ByVal PrinterName As String) As String

 'This works with Windows 2000 and up
 
  Dim Arr As Variant
  Dim Device As Variant
  Dim Devices As Variant
  Dim Printer As String
  Dim RegObj As Object
  Dim RegValue As String
  Const HKEY_CURRENT_USER = &H80000001
       
    Set RegObj = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    RegObj.enumvalues HKEY_CURRENT_USER, "Software\Microsoft\Windows NT\CurrentVersion\Devices", Devices, Arr
    
      For Each Device In Devices
        RegObj.getstringvalue HKEY_CURRENT_USER, "Software\Microsoft\Windows NT\CurrentVersion\Devices", Device, RegValue
        Printer = Device & " on " & Split(RegValue, ",")(1)
        If InStr(1, Printer, PrinterName, vbTextCompare) > 0 Then
           FindPrinter = Printer
           Exit Function
        End If
      Next
      
      
End Function

Thursday, May 15, 2014

Replace/remove s-voice on the Samsung Galaxy S3 (and hopefully noteII)



...a post in a forum (link) that gave me the missing link to getting “Bluetooth Launch” to work!  There were a few more steps to do:
  1. Open S-Voice and from the settings menu, un-check the option to launch with the home button. (Home2Shortcut takes over anyway).
  1. Open the phone “System settings” and goto “Applications manager”.  Swipe right twice to get to “All” and find S-Voice and disable it.
  1. Connect to your bluetooth headset/device with the screen unlocked and press the bluetooth button. This should cause a “Complete action using” dialog.  Here you can launch any application you want, including Google Search.
To automatically launch the google search with voice search activated, I found another handy app called “ICS Voice Search Shortcut” (link).
And there you go.  S-Voice replaced!
This was all done on a Samsung Galaxy S III LTE (I9305) with Jellybean 4.1.2.