I'm trying to make it click in a program when there is red in the rectangle, I have tried using reds taken from the program and pure red and I can't get it to click unless shade-variation is so large it clicks no matter what.
$pixel = PixelSearch ( 390, 340, 410, 343, 0xFF0000, 100) Local $i = 0 Do If IsArray($pixel) = True Then MouseClick("left") Sleep(80) EndIf Until $i = 1