I posted this on the Ask for Help forum but got no solution to this problem. I'd be interested to see if the following error can be reproduced.
I'm building a keyboard buffer with #UseHook, but it seems that when typing fast, keys are occasionally sent
without triggering their associated hotkeys, as if AHK were off.
The problem occurs with the following script file, which I am including in full:
Code:
^+e::Edit
#r::Reload
#s::Suspend
~LWin Up::Return
doKeypress( key )
{
SendInput %key%
Return
}
#UseHook
j::doKeypress( "a" )
k::doKeypress( "b" )
l::doKeypress( "c" )
`;::doKeypress( "d" )
#UseHook, Off
When I open a blank Notepad document and strum the J, K, L, and ; keys, I should get only a, b, c, and d, but I am also seeing l's and ;'s appear in the typed text. This is strange to me, because nowhere in the script do I include an instruction to type l or ;.
Now, for some reason, the problem disappears when I comment out the #UseHook directives. I get only a, b, c, and d when strumming J, K, L, and ;, as expected.
What could be the cause of this? Is this a bug?
I am using AutoHotkey_L v1.1.00.00 with Windows 7 Starter on a newly-purchased Toshiba netbook.