i have this code for example:
; $a and $b is the color to search
$xy=PixelSearch($xy1[1],$xy1[2],$xy2[1],$xy2[2],$a)
;if don't find the pixell then
if @error=1 then
;code .........
EndIf
$xy=PixelSearch($xy1[1],$xy1[2],$xy2[1],$xy2[2],$b)
;if don't find the pixell then
if @error=1 then
;code .........
EndIf
the code into the if is the same so if i can search 2 pixel at once the code will be shorter thanx =)