Sign in to follow this  
Followers 0
Marspidey

Skipping Error Messages

5 posts in this topic

Let me just start off saying that I am very new to AutoIt. Is there a command that can recognize an unexpected window(error message) and close it while the main automation will go on doing what I need? Any help is appreciated.

Share this post


Link to post
Share on other sites



Let me just start off saying that I am very new to AutoIt. Is there a command that can recognize an unexpected window(error message) and close it while the main automation will go on doing what I need? Any help is appreciated.

You can have a loop running WinList() and watching for new ones to pop up.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

You can have a loop running WinList() and watching for new ones to pop up.

:)

So I what would be the best way to code the loop?

Share this post


Link to post
Share on other sites

So I what would be the best way to code the loop?

The most straight forward thing would be to code a While/WEnd loop that:

Captures WinList() to a temporary 2D array...

Does a For/Next loop through that array, comparing each handle (titles can change) to a 'previously seen' list...

Adds any new ones to the permanent list and checks them for whatever exceptions you are looking for.

This will, however, stop the script from getting any thing else done in the mean time. So you might want to put that in a function and call it periodically with AdLibEnbale() instead.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Thanks for the help.

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