Maine Posted May 20, 2005 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
buzz44 Posted May 20, 2005 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now