acmecd Posted January 18, 2014 Share Posted January 18, 2014 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. Link to comment Share on other sites More sharing options...
Danyfirex Posted January 18, 2014 Share Posted January 18, 2014 Look this: http://www.autoitscript.com/autoit3/docs/intro/ComRef.htm http://www.autoitscript.com/autoit3/docs/functions/ObjEvent.htm saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Solution jdelaney Posted January 18, 2014 Solution Share Posted January 18, 2014 (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 January 18, 2014 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. Link to comment Share on other sites More sharing options...
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