When the hotkey Alt + Left is held down it closes the active tab in Firefox. However, if the hotkey Alt + Left is held down more than 0.20 seconds it closes also other tabs, which I really don't like. I just want it to execute only once and stop. Is it possible to prevent the routine?
Code: Select all
~!Left::
KeyWait, !, T0.20 ;Check if mouse button get's released immediately
KeyWait, Left, T0.20 ;Check if mouse button get's released immediately
if (ErrorLevel = 1){ ; Button is still down
Sendinput ^w
}
return