Jump to content
Sign in to follow this  
jimmyjoe

More Looping Woes

Recommended Posts

jimmyjoe

$mob = PixelGetColor(577, 32)
  sleep(2000)
  While 1
  If $mob = 8712183 Then
  sleep(1500)
  EndIf
  Wend

I cant figure out how to make this loop infinite until it comes back that the color at the coordinate is no longer there and then move on with the rest of the script. If there wasa goto I could figure something out. Whats AU3's equal to goto?

Share this post


Link to post
Share on other sites
Thatsgreat2345

whats wrong with moving the loop above the pixel check?

WHile 1
$mob = PixelGetColor(577, 32)
  If $mob = 8712183 Then
program()
Else
sleep(200)
  Wend

func program()
;program stuff goes here
    EndFunc
Edited by thatsgreat2345

Share this post


Link to post
Share on other sites
Uten

I cant figure out how to make this loop infinite until it comes back that the color at the coordinate is no longer there and then move on with the rest of the script. If there wasa goto I could figure something out. Whats AU3's equal to goto?

Hope the goto thing is a joke? :think:

The world has moved one you know;)

While (8712183 = PixelGetColor(577, 32))
  sleep(1500)
WEnd

EDIT: Formating came out all wrong.

Edited by Uten

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  

×