Fixed bug regarding modifier keys
This commit is contained in:
8
Echo.ahk
8
Echo.ahk
@@ -34,8 +34,10 @@ 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))
|
||||||
for k, v in enabledWindows[1] {
|
if (whitelistKeys.HasKey(key)) {
|
||||||
ControlSend,, {%key% up}, ahk_pid %v%
|
for k, v in enabledWindows[1] {
|
||||||
|
ControlSend,, {%key% up}, ahk_pid %v%
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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