Jump to content
Sign in to follow this  
Rauchster

Do/Until With Or

Recommended Posts

Is it possible to have a Do command and have 2 Until commands that both activate the next line?

Such as:

Do

$CheckGameLaunch = PixelGetColor (570, 610)

Until $CheckGameLaunch = 15626265

Or $CheckGameLaunch = 15513978

MouseClick ("left")

I want this to check for a certain pixel to be colored (meaning the button is avaible to click)

but sometimes the button moves slightly in the window, so I have the second number in there for when this happens.

How can I write this?

Share this post


Link to post
Share on other sites

this is what you were looking for ... yes you can

Do
$CheckGameLaunch = PixelGetColor (570, 610)
Until $CheckGameLaunch = 15626265 Or $CheckGameLaunch = 15513978
MouseClick ("left")

but... it might need a small sleep in it too!

8)


NEWHeader1.png

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...