Code: Select all
Loop
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 553, 519, 1375, 563, 0xF9FD02, 10, Fast RGB
Sleep, 1
}
Until ErrorLevel = 0
If (ErrorLevel = 0)
{
Loop
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, %FoundX%, %FoundY%, %FoundX%, %FoundY%, 0xFDFD04, 10, Fast RGB
Sleep, 1
}
Until ErrorLevel
If (ErrorLevel = 0)
{
MsgBox, 0, , woo
}
}
Trying to make it loop till it finds a certain pixel and then move to a if statement which leads to another loop that activates when the original pixel that was found is then not visible/ a different pixel but the code just doesnt seem to work?
[Moderators note: Moved to Gaming subsection, added code boxes]