(I mean, when we press some hotkey, but continue to keep our fingers on buttons, instead of quickly release them).
Code: Select all
PreventRepeating() {
KeyWait, Alt
KeyWait, Ctrl
KeyWait, Shift
KeyWait, LWin
KeyWait, RWin
KeyWait, %A_ThisHotkey%
}
F1::
SendInput, Foo
PreventRepeating()
Return
^a::
SendInput, Bar
PreventRepeating()
Return
Also, I could reformulate my question: what is the good way to prevent hotkey from repeating?