Do
$aCoord = PixelSearch(0,0,0,0, 0xcc0000)
If Not IsArray($aCoord) Then MouseClick('left')
Sleep(100)
Until IsArray($aCoord)
;oder
while 1
$aCoord = PixelSearch(0,0,0,0, 0xcc0000)
If IsArray($aCoord) Then ExitLoop
MouseClick('left')
Sleep(100)
WEnd
Return Value
Success: Returns a two-element array of pixel's coordinates. (Array[0] = x, Array[1] = y).
Failure: Sets @error to 1 if color is not found.