Thanks!
Now i´ve got an other problem.
I want now to exitloop if it finds a color, but if there is the second color, (0xEEE2C7), on 86, 631 it should exitloop and click 2 more times instead.What am I doing wrong?
Code:
While 1
Sleep(3800)
MouseClick("left", 1208, 549, 2)
$Variable = PixelSearch(0, 0, 51, 80,0x5D5D60)
$Variable2 = PixelSearch(0, 0, 86, 631,0xEEE2C7)
if IsArray($Variable) = true Then
ExitLoop
Elseif IsArray($Variable2) = true Then
Exitloop
Sleep(4000)
MouseClick("left", 86, 631)
Sleep(500)
MouseClick("left", 244, 562, 2)
EndIf
EndIf
WEnd