I think there's a bug causing unexpected Hotkeys to trigger. In the following code:
Code: Select all
Hotkey, ~^vk5A, OnCtrlAction, useErrorLevel
Hotkey, ~^vk5A Up, OnCtrlZup, useErrorLevel
Loop, 256
{
k := A_Index
code := Format("{:x}", k)
n := GetKeyName("vk" code)
if (n = " ") || (n = "") || (StrLen(n)>1)
continue
Hotkey, % "~*vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~+vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~^!vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~<^>!vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~+^!vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~+<^>!vk" code, OnLetterPressed, useErrorLevel
Hotkey, % "~*vk" code " Up", OnLetterUp, useErrorLevel
if (errorlevel!=0)
soundbeep, 1900, 50
}
It's even weirder, if you choose to bind to ~^vk41 after the loop, and you use the Igbo kbd layout. When you press A [with no shift], it gets triggered.
Thank you.
Best regards, Marius.