Create Context Example.ahk
parent
8f73b01d7c
commit
b4adcba1ad
@ -0,0 +1,28 @@
|
|||||||
|
#SingleInstance force
|
||||||
|
Persistent
|
||||||
|
#include Lib\AutoHotInterception.ahk
|
||||||
|
|
||||||
|
AHI := AutoHotInterception()
|
||||||
|
id1 := AHI.GetKeyboardId(0x04F2, 0x0112, 1)
|
||||||
|
cm1 := AHI.CreateContextManager(id1)
|
||||||
|
return
|
||||||
|
|
||||||
|
#HotIf cm1.IsActive
|
||||||
|
::aaa::JACKPOT
|
||||||
|
1::
|
||||||
|
{
|
||||||
|
ToolTip("KEY DOWN EVENT @ " A_TickCount)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
1 up::
|
||||||
|
{
|
||||||
|
ToolTip("KEY UP EVENT @ " A_TickCount)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
#HotIf
|
||||||
|
|
||||||
|
^Esc::
|
||||||
|
{
|
||||||
|
ExitApp
|
||||||
|
}
|
Loading…
Reference in New Issue