#include <Debug.au3>
_DebugSetup()
call(testpixelsearch())
Func testpixelsearch()
Local $aarray = MouseGetPos()
Local $color = hex( PixelGetColor($aarray[0], $aarray[1]))
Local $shadecycle = 1
Do
_DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1])
PixelSearch($aarray[0] - 50, $aarray[1] - 50, $aarray[0] + 50, $aarray[1] + 50, $color, $shadecycle)
;If @error = 0 Then ExitLoop
$shadecycle += 1
Until 1
_DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1])
EndFunc ;==>testpixelsearch
when exitloop line is commented until still runs only once. need something like until (false)
then everything except pixelsearch works like planned.
junkew helped but in the end all was solved by googlefu.