Bug that was driving me insane for a week was actually a bug with AHK itself
Posted: 01 Feb 2024, 19:28
So back in August last year, I was driving myself insane for a week trying to fix a bug. I planned on asking for help here, even drafted a long-ass explanation with a crap-ton of comments, but never got around to posting it.
Jump to now where I'm revisiting the code and it's actually working – no more bug? Then I come to find out it was actually a bug with AHK itself that was fixed in v2.0.7, less than a month after I initially encountered the bug.
I feel both validated and annoyed that I never posted it, lol.
Here's an example of the bug (easy to see the simplified version in hindsight):
The specific fix found in the v2.0.7 notes is "Fixed hook hotkeys not recognizing modifiers which are pressed down by SendInput."
Really just posting this for catharsis.
Jump to now where I'm revisiting the code and it's actually working – no more bug? Then I come to find out it was actually a bug with AHK itself that was fixed in v2.0.7, less than a month after I initially encountered the bug.
I feel both validated and annoyed that I never posted it, lol.
Here's an example of the bug (easy to see the simplified version in hindsight):
Code: Select all
0:: Shift
; You should be able to trigger the below hotkey by pressing 0 & 1,
; but in v2.0.6 and below, you can't.
$+1:: MsgBox()
Really just posting this for catharsis.