CODE:
#Requires AutoHotkey v1.1.33.11
RButton::
KeyWait RButton, T3
Switch ErrorLevel GetKeyState("RButton") {
Case 0: Click R
Case 10: Click R D
Default: Click R U
}
SoundBeep 1000 + 500 * GetKeyState("RButton")
Return
Explained: KeyWait • GetKeyState()
Thank you for your fast reply!
It is so close... I find that while I am holding down the rbutton there is no input to the pc while i am waiting for the 3 seconds.
Is there a way to modify this script that it monitors if the button is held down without interrupting the input?
An example scenario this could solve for is in a game the player needs me to hold down the rbutton to run around.
So when the right button is used the immediate response is still needed and if it's been held down for 3 seconds then the script should take over and hold it down until clicked again.
Statistics: Posted by MantraHK — Today, 16:39