Hold two keys, repeat another Topic is solved

Get help with using AutoHotkey and its commands and hotkeys

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
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

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

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], ddavidjames00, Google [Bot], Scapoose and 49 guests