Sign in to follow this  
Followers 0
Guest Cubitus

Exit script after error

3 posts in this topic

Hi,

seems to be a newbie question but I didn't find anything about it:

I use autoit to automate some setup.exes, therefore I work a lot with WinWaitActive.

If setup.exe fails somewhere and I have to quit it manually, the autoit script waits forever for the next window.

If I use the timeout option, I have to know how long setup.exe needs for every step -> no good.

Is there any smart solution to deal with this problem?

cubi

Share this post


Link to post
Share on other sites



I suggest using the AdlibEnable and use a function that handles the failure and exits the script.

You'll need to post your code if you don't understand how to do this.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Hi,

together with ProcessExists this is exactly what I need!

many thanks

cubi

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