Thanks but I kind of have that step already. I'm trying to figure out how to write the code after it finds the initial pixel. I found a way to check for the adjacent pixel but I think it's poorly written and incorrect. Even so, I don't know how to make it check the next available pixel in the row
search()
Func search()
$coord = pixelsearch(339,205,721,481,0xFF0000,0)
IF not @error then
$x=$coord[0]+1
$y=$coord[1]
$color= pixelgetcolor($x,$y);gets the color from the pixel on x+1(right)
If $color = "0x00000" then
mousemove($coord[0],$coord[1])
msgbox(0,"",hex($color, 6))
Else
;Check next pixel
EndIf
EndIf
EndFunc
This checks the first pixel (red) it finds and sees if the next one to it is black. It isn't, but I don't know how to make it find the next pixel available and keep searching. And the code is probably wrong and sucks anyways