Hold two keys, repeat another Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
WhoDnee

Hold two keys, repeat another

22 Feb 2018, 21:09

So, I'm new to AHK, and I'm not sure how to go about multiple inputs doing various things.

What I'd like to do is upon hitting, say "0", hold "W" and "Shift", while pressing C once every .4 milliseconds or something.. If I hit "0" again, the script will shut off.
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Hold two keys, repeat another  Topic is solved

23 Feb 2018, 01:44

I don't know if it will work I'm a newbie with this but I tried. :crazy:

Code: Select all

0:: 
toggle := !toggle
if toggle
Send, {W down} {Shift down} 
loop 
{ 
Send, c
Sleep 4
if not toggle
break
}
else 
Send, {W up} {Shift up}
return
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Ask For Help”

Who is online

Users browsing this forum: blad4, Google [Bot], Mipha and 48 guests