Admins please feel free to move this to ask for help
Originally I thought this was a bug, but I realized it was due to a nuance of AHK that I hadn't grasped.
Key List, specifically the VKnn part: https://autohotkey.com/docs/KeyList.htm
Code which exhibits the issue:DownloadKnown limitation: VK hotkeys that are forced to use the keyboard hook, such as *VK24 or ~VK24, will fire for only one of the keys, not both (e.g. NumpadHome but not Home). For more information about the VKnn method, see Special Keys.
So how do we know *which* keys are special in this way? It is only keys which have an alternate version on the numpad?
Code: Select all
~VK26::Tooltip Up Arrow ; Does not trigger as hook is used VK27::Tooltip Right Arrow ; Triggers
These seem to be the ones that on my keyboard no longer respond to non-numpad versions of the keys when the hook is enabled.
VK_PRIOR 0x21 (PgUp)
VK_NEXT 0x22 (PgDn)
Also, how does AHK work internally then?
These keys are clearly bindable with the hook (eg ~Up::Tooltip Up works) so what, it decides whether to use the VK or scancode depending on what key it is?
And why does return "NumpadUp" instead of "Up"??