Hold two keys, repeat another

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Hold two keys, repeat another

Re: Hold two keys, repeat another

by Nwb » 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

Hold two keys, repeat another

by WhoDnee » 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.

Top