Maine 0 Posted May 20, 2005 I am a bit confused on how this works..... i wanted to simply search my desktop for a color then once it has found the color left click but i cannot seem to get it, can someone help me Share this post Link to post Share on other sites
Maine 0 Posted May 20, 2005 Anyone? i keep getting an error Share this post Link to post Share on other sites
buzz44 1 Posted May 20, 2005 $Coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MsgBox(0, "X and Y are:", $Coord[0] & "," & $Coord[1]) EndIfI answered this in another topic, but never the less I think it might be the same problem.$Coord[0] and $Coord[1] will only exist if the colour is found. Thats why it checks if there wasn't an error. Check the above and then compare it to your code. Hope it helps.Burrup qq Share this post Link to post Share on other sites