Sign in to follow this  
Followers 0
BubbaFresh

Alternating keypresses?

2 posts in this topic

#1 ·  Posted (edited)

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



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