Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More arguments expected
#1
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
Code:
Copy      Help
__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

;
;


Messages In This Thread
More arguments expected - by InterestedNewbie - 05-07-2018, 02:50 PM
RE: More arguments expected - by Kevin - 05-07-2018, 03:49 PM
RE: More arguments expected - by InterestedNewbie - 05-07-2018, 05:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)