Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WaitForHotkey in help
#1
Func: WaitForHotkey 

in the help has a bit problematic,  it should be changed to the code on the image

In addition, the following code, when debugging, press F12 without any response Huh 

Macro Macro1
Trigger SF9     Help - how to add the trigger to the macro
Code:
Copy      Help
__RegisterHotKey hk1.Register(0 1 0 VK_F10)
__RegisterHotKey hk2.Register(0 2 0 VK_F12)
MSG m
rep
,if(GetMessage(&m 0 0 0)<1) break
,sel m.message
,,case WM_HOTKEY
,,sel m.wParam
,,,case 1
,,,mes 10
,,,
,,,case 2
,,,mes 12
,,,ret
,,,
,DispatchMessage &m


Attached Files Image(s)
   
#2
F12 is one of hotkeys used by Windows, like Alt+Tab.


Forum Jump:


Users browsing this thread: 1 Guest(s)