nyxx24 Posted December 24, 2008 Posted December 24, 2008 Hey All, It's me again.. so I got this script cruising along fine but there are some things I think could be better, and now I am looking for a way to improve one part.. Forgive me I am at work so I don't have the script handy.. The script loops using a While loop, there are a few beginning steps then a pixel search to skip an inner loop, followed by the inner loop and then the ending steps Right now if the pixel search errors out the inner loop runs 9 times but as many of 8 could be wasteful b/c after each run the pixel search might not error out. So What I want is a way to put the same pixel search in the loop to check each time it runs that would exit the loop rather than contunie all 9 runs if it does not error out ///// While 1 = = (Beginning steps) = = Pixel search if @ error continue = $i = 0 While $i < 9 ; 9 is the number of loops = = (Inner Loop Body) = = $i = $i + 1 = = (Finishing Steps) = = Else End IF ---> Pixel search = = Wend //////////// Sorry it is so unclear.. Suggestions would be appreciated, thanks.. Nyxx
herewasplato Posted December 24, 2008 Posted December 24, 2008 ///// While 1 = = (Beginning steps) = = Pixel search if @ error continue = = For $i = 1 to 9 ; 9 is the number of loops (Inner Loop Body) If Pixel search = ______ then ExitLoop Next = = (Finishing Steps) = = Else End IF ---> Pixel search = = Wend //////////// [size="1"][font="Arial"].[u].[/u][/font][/size]
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