Marspidey Posted June 1, 2007 Posted June 1, 2007 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.
PsaltyDS Posted June 1, 2007 Posted June 1, 2007 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
Marspidey Posted June 1, 2007 Author Posted June 1, 2007 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?
PsaltyDS Posted June 1, 2007 Posted June 1, 2007 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
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