Sign in to follow this  
Followers 0
nyxx24

Looking for suggestion

2 posts in this topic

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

Share this post


Link to post
Share on other sites



/////

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0