Add v2 Subscription example

pull/99/head
Clive Galway 1 year ago
parent 8c0ba4671f
commit aaf07220cd

@ -0,0 +1,18 @@
#SingleInstance force
Persistent
#include Lib\AutoHotInterception.ahk
AHI := AutoHotInterception()
keyboardId := AHI.GetKeyboardId(0x04F2, 0x0112)
AHI.SubscribeKey(keyboardId, GetKeySC("1"), true, KeyEvent)
return
KeyEvent(state){
ToolTip("State: " state)
}
^Esc::
{
ExitApp
}
Loading…
Cancel
Save