XButton2::
varProcess := "yourprocess.exe"
KeyPress := !KeyPress
if (KeyPress) {
ControlSend,, {LShift down}{R down}, ahk_exe %varProcess%
SoundBeep, 500, 500
}
else {
ControlSend,, {LShift up}{R up}, ahk_exe %varProcess%
loop 3
SoundBeep, 500
}
return