Jump to content
Sign in to follow this  
BubbaFresh

Alternating keypresses?

Recommended Posts

BubbaFresh

I need helping getting Alternating key presses to work in a game I play

#include <misc.au3>

While True
If _IsPressed("A2") Then
  MouseClick("left")
  Sleep(10)
  Send("2")
EndIf
WEnd

Where 2 is, I want it to alternate between 2 and 3

So the first time through it'll be 2, then the second time I press control it'll loop through but press 3

etc

Edited by BubbaFresh

Share this post


Link to post
Share on other sites
Valik

Read the rules. All of them. Thread locked.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×