mirror of
https://github.com/evilC/AutoHotInterception.git
synced 2024-11-16 21:25:46 +00:00
16 lines
292 B
AutoHotkey
16 lines
292 B
AutoHotkey
#SingleInstance force
|
|
#Persistent
|
|
#include Lib\AutoHotInterception.ahk
|
|
|
|
AHI := new AutoHotInterception()
|
|
|
|
keyboardId := AHI.GetKeyboardId(0x04F2, 0x0112)
|
|
AHI.SubscribeKey(keyboardId, GetKeySC("1"), true, Func("KeyEvent"))
|
|
return
|
|
|
|
KeyEvent(state){
|
|
ToolTip % "State: " state
|
|
}
|
|
|
|
^Esc::
|
|
ExitApp |