User Tools

Site Tools


on_20screen_20keyboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

on_20screen_20keyboard [2018/03/31 13:19]
127.0.0.1 external edit
on_20screen_20keyboard [2018/04/17 18:01] (current)
tbest3112 Added syntax highlighting
Line 2: Line 2:
  
 //by Richard Russell, September 2013//\\ \\  To open the Windows **On Screen Keyboard** from an LBB program use this code:​\\ ​ //by Richard Russell, September 2013//\\ \\  To open the Windows **On Screen Keyboard** from an LBB program use this code:​\\ ​
 +<code lb>
   files "​c:​\windows\sysnative\",​ "​cmd.exe",​ info$()   files "​c:​\windows\sysnative\",​ "​cmd.exe",​ info$()
   if val(info$(0,​0)) then   if val(info$(0,​0)) then
Line 8: Line 9:
     run "​cmd.exe /c osk.exe",​ hide     run "​cmd.exe /c osk.exe",​ hide
   end if   end if
 +</​code>​
 The reason for this complexity is that the 32-bit version of OSK.EXE supplied with 64-bit Windows 7 does not run (this issue appears to have been fixed in Windows 8). Therefore it is necessary to force the 64-bit version to be run, which is the purpose of the above code.\\ \\  If you want the code also to be compatible with Liberty BASIC 4.04, DIMension the array at the start:​\\ ​ The reason for this complexity is that the 32-bit version of OSK.EXE supplied with 64-bit Windows 7 does not run (this issue appears to have been fixed in Windows 8). Therefore it is necessary to force the 64-bit version to be run, which is the purpose of the above code.\\ \\  If you want the code also to be compatible with Liberty BASIC 4.04, DIMension the array at the start:​\\ ​
 +<code lb>
   dim info$(0,0)   dim info$(0,0)
   files "​c:​\windows\sysnative\",​ "​cmd.exe",​ info$()   files "​c:​\windows\sysnative\",​ "​cmd.exe",​ info$()
Line 16: Line 19:
     run "​cmd.exe /c osk.exe",​ hide     run "​cmd.exe /c osk.exe",​ hide
   end if   end if
 +</​code>​
on_20screen_20keyboard.txt ยท Last modified: 2018/04/17 18:01 by tbest3112