Shell to On-Screen Keyboard

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
 
D

Dirk Goldgar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top