h3now Posted January 24, 2009 Share Posted January 24, 2009 I was trying to make a script that would search for a certain color in a certain place of my monitor, if the color was found then it would continue to the other part of the code, if not, then it would search again for that color (infinitely). I don't know what I'm doing wrong, here's the code: CODE pixelsearch(636,90,637,91,0x11052948,0) While @error=1 pixelsearch(636,90,637,91,0x11052948,0) sleep(100) WEnd Send("7") This is something like: search for the pixel, if it wasn't found then loop the code between the while statement, after that run the "Send" code. Any suggestions? Link to comment Share on other sites More sharing options...
Kip Posted January 24, 2009 Share Posted January 24, 2009 Sleep() is resetting the @Error value to 0. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
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