Files
Echo/ssddddd
2021-10-28 18:31:05 +02:00

32 lines
929 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
diff --git a/Echo.ahk b/Echo.ahk
index fa4413e..d0a0292 100644
--- a/Echo.ahk
+++ b/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, -60000
+return
+
+
F5::
ih := InputHook("B")
ih.KeyOpt("{All}", "NV")