Code: Select all
~F1::
{
SendInput "{F1}"
Sleep 500
SendInput "{XButton2}"
}
Code: Select all
~F1::
{
SendInput "{F1}"
Sleep 500
SendInput "{XButton2}"
}
No, it is not. It is the exact opposite. It causes the original function of that key to be retained rather than getting blocked/eaten by the hotkey. What you need is the $ prefix which prevents your routine from triggering its own hotkey when you send F1.
Code: Select all
#Requires AutoHotkey v2.0
~F1:: {
Sleep 500
Click 'X2'
SoundBeep 1500
}