cascadehali Posted April 29, 2018 Share Posted April 29, 2018 While 1 if ((PixelSearch 939,525,973,551, 0xFE4040, 3, Fast rgb) = True) Then Click WEnd Need to loop this constantly, however it says While doesn't have a matching statement WEnd, and if statement is missing a bracket somewhere. Link to comment Share on other sites More sharing options...
Bowmore Posted April 29, 2018 Share Posted April 29, 2018 Check the help file for correct syntax While 1 if ((PixelSearch 939,525,973,551, 0xFE4040, 3, 1) = True) Then ;<================ Click EndIF ;<=========================== WEnd "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
Developers Jos Posted April 29, 2018 Developers Share Posted April 29, 2018 (edited) 2 hours ago, cascadehali said: Need to loop this constantly, however it says While doesn't have a matching statement WEnd, and if statement is missing a bracket somewhere. There is much wrong with those lines. On top of what Bowmore stated, the syntax for Pixelsearch() is wrong too as the bracket is in the wrong place! Click is not a functions so is invalid too. Use au3check to help you better getting the syntax fixed and/or read the helpfile. Jos Edited April 29, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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