Malfunctioning of Hotkeys
Posted: 28 Nov 2021, 08:09
I want to learn why hotkeys sometimes stop functioning without any apparent reason after they are accidentally held instead of being simply pressed quickly.
When I quickly press LControl & RControl while the following sample script is running, the execution of the “While” operation starts. When the same combination of keys is quickly pressed again, the “While” operation stops normally, as intended in the script.
However, if I press and hold LControl & RControl for a few seconds, this hotkey stops functioning, so that it subsequently becomes impossible to stop the execution of the “While” operation with this hotkey.
When I quickly press LControl & RControl while the following sample script is running, the execution of the “While” operation starts. When the same combination of keys is quickly pressed again, the “While” operation stops normally, as intended in the script.
However, if I press and hold LControl & RControl for a few seconds, this hotkey stops functioning, so that it subsequently becomes impossible to stop the execution of the “While” operation with this hotkey.
Code: Select all
#MaxThreadsPerHotkey 2
LControl & RControl::
#MaxThreadsPerHotkey 1
on := !on
While on
{
SoundBeep
}
Return