I need an on-screen keyboard that only has 3 keys (Shift, Ctrl and Alt).

10/02/2020 02:17 yetoyeto#1
Could someone point me in the right direction to a sample script that I can modify to make an on-screen keyboard that only has 3 keys (Shift, Ctrl and Alt)? I would like to be able to click on these keys and "fool" my computer into thinking I am holding these keys down.

Thank you in advance for any help,
yeto
10/05/2020 13:49 [Beatrice]#2
Code:
#include <WinApiSys.au3>
#include <WinAPIvkeysConstants.au3>

Keybd_Event($VK_SHIFT) ; press shift
Sleep(1000)
Keybd_Event($VK_SHIFT,0x2) ; release shift

Func Keybd_Event($bVkey,$dwFlags=0x0)
_WinAPI_Keybd_Event($bVkey,$dwFlags,_WinAPI_MapVirtualKey($bVkey,$MAPVK_VK_TO_VSC))
EndFunc
[Only registered and activated users can see links. Click Here To Register...]