05-07-2018, 02:50 PM
(This post was last modified: 05-07-2018, 02:51 PM by InterestedNewbie.)
I'm working on a keyboard hook that can launch three different kinds of applications and a SendKeys sequence within those applications.
Apparently RegisterHotKey is expecting more arguments on line 3 and 4 (where I am trying to register NumKey 9 and 6).
Error in <open ":2992: /147">Test Hook: expected 4 arguments, not 3.
What am I doing wrong?
Macro Test Hook
Apparently RegisterHotKey is expecting more arguments on line 3 and 4 (where I am trying to register NumKey 9 and 6).
Error in <open ":2992: /147">Test Hook: expected 4 arguments, not 3.
What am I doing wrong?
Macro Test Hook
__RegisterHotKey hk1.Register(0 1 MOD_CONTROL|MOD_ALT VK_DOWN)
__RegisterHotKey hk2.Register(0 2 MOD_CONTROL|MOD_ALT VK_UP)
__RegisterHotKey hk3.Register(0 3 VK_NUMPAD9)
__RegisterHotKey hk4.Register(0 4 VK_NUMPAD6)
;...
MSG m
rep
,if(GetMessage(&m 0 0 0)<1) break
,sel m.message
,,case WM_HOTKEY
,,sel m.wParam
,,,case 1
,,,run "C:\Program Files (x86)\Test\App1.exe"
,,,case 2
,,,run "C:\Program Files (x86)\Test\App2.exe"
,,,case 3
,,,run "C:\Program Files (x86)\Test\App3.exe"
,,,case 4
,,,key T ;; Tab
,,,key Y ;; Enter
,,,
,DispatchMessage &m
;
;