Hi all,
Have looked around and tried a few different things from various suggestions, but can't get pixelsearch to loop until it finds a colour.
The script either stalls completely, or just continues running the script. At the moment, it just continues with the below:
Local $pixel
Do
$pixel = PixelSearch(46, 427, 71, 451, 0xFFFF00)
_FileWriteLog($LogFile, "Checking pixels") ; Write to the logfile passing the filehandle returned by FileOpen.
Sleep(500)
Until Not @error
_FileWriteLog($LogFile, "Toolbar found, continuing") ; Write to the logfile passing the filehandle returned by FileOpen.
Have also tried using "Until $pixel[0] > 0".
I have used the following code to check that the PixelSearch does actually work:
Local $pixel
Sleep(5000)
$pixel = PixelSearch(46, 427, 71, 451, 0xFFFF00)
MsgBox(0, "", $pixel[0] & $pixel[1])
Which it does.
Any tips appreciated!