Mbutton Triggers LButton with delay
Posted: 06 Feb 2023, 22:39
İ need to a script that works like this.
I will press Mbutton and hold it. As long as i keep it pressed down it will do this;
keep lmb pressed down for 1.5 secs and release, also repeat this as long as i keep mbutton hold down (pressed)
plus i need to merge these scripts instead of starting 2 separate instances and combine with the one above
first one; this script just presses to the "q" key as long as i press Lbutton everytime.
second one; this just presses rmb once as long as i click lmb once to shoot.
Thx in advance..
I will press Mbutton and hold it. As long as i keep it pressed down it will do this;
keep lmb pressed down for 1.5 secs and release, also repeat this as long as i keep mbutton hold down (pressed)
plus i need to merge these scripts instead of starting 2 separate instances and combine with the one above
Code: Select all
~LButton::
Gosub, Key
SetTimer, Key, 1000
KeyWait, LButton
SetTimer, Key, Off
Return
Key:
Send q
Return
Code: Select all
~LButton::
Key:
Send {Rbutton}
Return
second one; this just presses rmb once as long as i click lmb once to shoot.
Thx in advance..