Code: Select all
RShift::RButton ;; While hold RShift and RButton
~RButton:: ;; send only standart RButton, RShift should be just a trigger for "x" button if RButton is released
KeyWait, RButton ;; check if RButton is still down
Send % ErrorLevel & GetKeyState("RButton", "P") ? "{x}" : "" ;; if only RShift is UP - just ignore all the script, if only RButton is up - send click button "x" and RButton Up
Return
Thanks in advance