Added timer to reset the hook every 5 min
This commit is contained in:
13
Echo.ahk
13
Echo.ahk
@@ -24,6 +24,8 @@ enabledWindows.Push(Array())
|
||||
global keyLog := Array()
|
||||
global whitelistKeys := Array()
|
||||
|
||||
SetTimer, ResetHook, -60000
|
||||
|
||||
; whitelistKeys["q"] := 1
|
||||
; whitelistKeys["e"] := 1
|
||||
; whitelistKeys[1] := 1
|
||||
@@ -277,6 +279,17 @@ RemoveCurrentWindow() {
|
||||
}
|
||||
}
|
||||
|
||||
ResetHook:
|
||||
ih := InputHook("B")
|
||||
ih.KeyOpt("{All}", "NV")
|
||||
ih.OnKeyDown := Func("OnKeyDown")
|
||||
ih.OnKeyUp := Func("OnKeyUp")
|
||||
ih.Start()
|
||||
; Tooltip, WIN
|
||||
SetTimer, ResetHook, -30000
|
||||
return
|
||||
|
||||
|
||||
F5::
|
||||
ih := InputHook("B")
|
||||
ih.KeyOpt("{All}", "NV")
|
||||
|
||||
Reference in New Issue
Block a user