Jump to content

Recommended Posts

Posted

$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?

Posted (edited)

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
Posted (edited)

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

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...