If I hold down my RButton, then I hear soundbeep. A normal RButton if I press it quickly. Okay. What I want to do is that I want Alt to be pressed down in the beginning instead of waiting for T0.1. The problem is that it waits here till I release the RButton, and therefore I don't hear the soundbeep. Is it possible to have Alt pressed down and still have multi button working properly as well? Thanks in advance.
Code: Select all
RButton::
SendInput {Alt down}
KeyWait RButton
SendInput {Alt up}
KeyWait, RButton, T0.1. ; Check if mouse button get's released immediately
if (ErrorLevel = 1){ ; Button is still down
SoundBeep 900
}
else{
SendInput {RButton}
}
return