ageofchaos Posted June 23, 2009 Share Posted June 23, 2009 Here's the code; it's just used as a test to work out pixelsearch: CODE While 1 PixelSearch(333, 246, 1050, 690, 0xFF0000) If @error Then MouseClick("right") sleep(1000) ElseIf not @error Then tooltip("Not Found") endIf Wend I put my desktop's background as red, and when I run my script, it only shows the "Not Found" tooltip. When I switch my background to white and run the script, it right-clicks. Have I input the colorcode wrong? I looked around posts, and I've seen them all have the same colorcode format as I used. Link to comment Share on other sites More sharing options...
ageofchaos Posted June 23, 2009 Author Share Posted June 23, 2009 (edited) Here's the code; it's just used as a test to work out pixelsearch:CODEWhile 1PixelSearch(333, 246, 1050, 690, 0xFF0000)If not @error Then MouseClick("right") sleep(1000)ElseIf @error Then tooltip("Not Found")endIfWendI put my desktop's background as red, and when I run my script, it only shows the "Not Found" tooltip. When I switch my background to white and run the script, it right-clicks. Have I input the colorcode wrong? I looked around posts, and I've seen them all have the same colorcode format as I used.Rofl, I'm retarded. @error displays if it DOESN'T see the color. Fixed. LOL. /facepalm Edited June 23, 2009 by ageofchaos 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