Ну так и проверяй
GETSCREEN
IF_PIXEL_IN(589, 191, 1044, 651, 0,1,2,3,4,5,6,7,8,9,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40)
$X = $_return1
$Y = $_return2
IF((PXL($X-1,$Y) < 41) & (PXL($X-2,$Y) < 41) & (PXL($X+1,$Y) < 41) & (PXL($X+2,$Y) < 41) & (PXL($X,$Y-1) < 41) & (PXL($X,$Y-2) < 41) & (PXL($X,$Y+1) < 41) & (PXL($X,$Y+2) < 41))
lclick($X, $Y)
END_IF
END_IF