Help with making my script toggle

Ask gaming related questions
mulder427
Posts: 6
Joined: 17 Mar 2018, 04:53

Help with making my script toggle

17 Mar 2018, 04:59

Hi all

Can anyone change this script to toggle so it just holds down rather having to keep the key pressed i don't want it to repeat over and over again just to hold down q first then after hold down w at the same time until i press e again to lift it up.

e::
Send {q down}
Sleep 100
Send {w down}
KeyWait, e
Send {q up}{w up}
return

Many thanks for your help guys.
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Help with making my script toggle

17 Mar 2018, 07:12

Code: Select all

Toggle := 0

$*e::
Toggle := !Toggle
if Toggle {
Send, {q down}
Sleep 100
Send, {w down}
}
else 
Send, {q up} {w up}
return 
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests