Jump to content

Exit script after error


Guest Cubitus
 Share

Recommended Posts

Guest Cubitus

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

Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...