something like this should work
Function __RegisterHotKey_example
may need to adjust file location..
two ways to do it
drag and drop the exe into the qm editor
or use the run program dialog in the floating toolbar
Function __RegisterHotKey_example
;Shows how to use __RegisterHotKey to use hotkeys in a windowless thread.
;This should be function, not macro, because runs all the time.
__RegisterHotKey hk1.Register(0 1 MOD_CONTROL|MOD_SHIFT VK_F5)
;also can register more hotkeys, for example
;__RegisterHotKey hk2.Register(0 2 MOD_CONTROL 'B')
;...
MSG m
rep
,if(GetMessage(&m 0 0 0)<1) break
,sel m.message
,,case WM_HOTKEY
,,sel m.wParam
,,,case 1 ;;Ctrl+Shift+F5 pressed
,,,run "C:\Program Files (x86)\Restart Utility\Restartapp.exe"
,,,;case 2
,,,;out "Ctrl+B"
,DispatchMessage &m
two ways to do it
drag and drop the exe into the qm editor
or use the run program dialog in the floating toolbar