Share this post

Link to post

Share on other sites

mikehunt114 0

mikehunt114 0

Is there a reason to do a double check? The PixelSearch is returning true, and giving you coordinates to the point where it found the color, but then afer that you recheck the coordinates for the color? I think you can remove that whole second If statement, but if you would like to keep it, try removing the optional parameter from the Hex() call and match that.