I have script as below that presses ctrl after I hold in Left Mouse Button after a certain amount of time.
Code: Select all
~$LButton::
KeyWait, LButton, T1.30
If (ErrorLevel)
{
while GetKeyState("LButton")
{
; if not GetKeyState("LCtrl")
Send {LCtrl Down}
KeyWait, LButton
Send {LCtrl Up}
}
}
return
My goal is to also press shift and hold it down and release when I push/release Left Mouse button. While keeping the above script active as is.
I currently have the hold in shift script but I wish to consolidate the two scripts into one. See below.
Code: Select all
~$LButton::
Send, {Shift down}{LButton down}
KeyWait, LButton
Send, {LButton up}{Shift up}
return
Lovely day all.
Regards pewi