Shell to On-Screen Keyboard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to "Shell" to Activate the
"On-Screen Keyboard" which will be
used w/ a Touch-screen App.

Where is it located...like Explorer below???

Dim RetVal As Long
RetVal = Shell("C:\Winnt\Explorer", 1)

TIA - Bob
 
Bob Barnes said:
I'd like to "Shell" to Activate the
"On-Screen Keyboard" which will be
used w/ a Touch-screen App.

Where is it located...like Explorer below???

Dim RetVal As Long
RetVal = Shell("C:\Winnt\Explorer", 1)

It's osk.exe, and it should be found in the %SystemRoot%\system32
folder. Depending on your OSVersion, this may be "C:\WINNT\system32"
(as it is with my Win2K system) or it may be someplace else. So you
could try

RetVal = Shell("C:\WINNT\system32\osk.exe", 1)

Probably, though, you don't need to specify the full path, and can just
write:

RetVal = Shell("osk.exe", 1)

It works in my test. Or you could take the trouble to find out what
%SystemRoot% is on the particular machine you're running on.
 
Back
Top