I have a question regarding the "PixelSearch".
My question is how to know that there is only white in the specified area ?
here is my code, but not correct. it can help me find white color, but My need is to know that there is only white in the specified area.
could you please help me with it ?
Thanks in advance.
Code: Select all
CoordMode, Mouse, Screen
Loop
{
MouseGetPos, x, y
PixelSearch, FoundX, FoundY, x-50, y-50, x+50, y+50, 0xFFFFFF, 0, Fast
if ErrorLevel
MsgBox, NO
else
MsgBox, YES
}