Sign in to follow this  
Followers 0
acmecd

How to quietly exit script on error?

3 posts in this topic

If any error happens I want script to exit quietly without popup error message and script close automatically. Script is reading some data from files, sort database, performing some actions with IE, read Windows handle etc.

After some time if script is not running then other script restarting it.

There to much write to handle all the errors, need simple solution when scrip exits on any error.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

If you call your compiled script like this (helpfile: command line parameters):

Compiled.exe [/ErrorStdOut]

or your au3 file like this:

AutoIt3.exe [/ErrorStdOut] [/AutoIt3ExecuteScript] file [params ...]

you will not get errors requiring user action.  The brackets means its option, remove them to use the param.

But really, this is just covering issues of not properly error handling/validating within your script.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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