Jump to content

Recommended Posts

Posted

I've been trying to get this to work for the LONGEST time (ok, only two days, but still) and it does not want to work correctly.

Basically, I want to click a location, then $loading = PixelGetColor (100, 100), then a Do loop to do $loading2 = PixelGetColor (100, 100) until $loading <> $loading2, then another Do loop to do Sleep for three seconds then $loading3 = PixelGetColor (100, 100) until $loading2 <> $loading3. However~ It just doesn't want to work properly for me. This is what I have so far:

MouseClick ("left", 40, 560, 1, 5)
Sleep (500)
$loading = PixelGetColor (100, 100)
Do
    $loading2 = PixelGetColor (100, 100)
    Sleep (500)
Until $loading <> $loading2
               
Do
                Sleep (3000)
                $loading3 = PixelGetColor (100, 100)
Until $loading2 <> $loading3

Sleep (2000)
MouseClick ("left", 40, 455, 1, 5)

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
×
×
  • Create New...