Fixed bug regarding modifier keys
This commit is contained in:
4
Echo.ahk
4
Echo.ahk
@@ -34,10 +34,12 @@ OnKeyDown(InputHook, VK, SC) {
|
|||||||
|
|
||||||
OnKeyUp(InputHook, VK, SC) {
|
OnKeyUp(InputHook, VK, SC) {
|
||||||
key := GetKeyName(Format("vk{:x}sc{:x}", VK, SC))
|
key := GetKeyName(Format("vk{:x}sc{:x}", VK, SC))
|
||||||
|
if (whitelistKeys.HasKey(key)) {
|
||||||
for k, v in enabledWindows[1] {
|
for k, v in enabledWindows[1] {
|
||||||
ControlSend,, {%key% up}, ahk_pid %v%
|
ControlSend,, {%key% up}, ahk_pid %v%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
WinGetAll() {
|
WinGetAll() {
|
||||||
PIDs := Array()
|
PIDs := Array()
|
||||||
@@ -132,6 +134,8 @@ KeyLogToString() {
|
|||||||
output := ""
|
output := ""
|
||||||
for k, v in keyLog {
|
for k, v in keyLog {
|
||||||
output .= k
|
output .= k
|
||||||
|
output .= " "
|
||||||
|
output .= v
|
||||||
output .= "|"
|
output .= "|"
|
||||||
}
|
}
|
||||||
StringTrimRight, output, output, 1
|
StringTrimRight, output, output, 1
|
||||||
|
|||||||
Reference in New Issue
Block a user