Sign in to follow this  
Followers 0
Moja

Easy Problem o_O

1 post in this topic

How would this be achieved, i've tried a few commands, i think the If.. Then command is correct but cant apply it. :D

Select
  Case $CS = 1
     MouseClick("Left", 180, 145, 2, 1)
  Case $CS = 2 
     MouseClick("Left", 466, 146, 2, 1)
  Case $CS = 3
     MouseClick("Left", 179, 240, 2, 1)
  Case $CS = 4
     MouseClick("Left", 459, 246, 2, 1)
  Case $CS = 5
     MouseClick("Left", 172, 336, 2, 1)
  Case $CS = 6
     MouseClick("Left", 453, 332, 2, 1)
  Case $CS = 7
     MouseClick("Left", 177, 431, 2, 1)
  Case $CS = 8
     MouseClick("Left", 454, 429, 2, 1)
EndSelect

Now then, at the top of this I wish to add:

PixelSearch(126, 55, 504, 87, 0x485058)

If the Pixel is found I want it to go to the start of the Select.. Case.. EndSelect, but i only wish to do this should the PixelSearch find the Pixel. Little help? :huh2:

Moja

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0