Ic3c0ld Posted November 21, 2005 Share Posted November 21, 2005 Well kind of obvious what the question is but just in case. Is it possible to make a function in a program for custom error handling like instead of just closing itself wit hno warning like show a message box with some info. Like my program keeps crashing and their is no error in the script but it crashes. Is this possible? Link to comment Share on other sites More sharing options...
themax90 Posted November 21, 2005 Share Posted November 21, 2005 (edited) Func Error(Num = -1) Select Case $ErrorNum = %numberuwant% MsgBox(0, "Error", "Error Information") Case Else MsgBox(0, "Error", "Unknown Error") EndSelect EndFunc Edited November 21, 2005 by AutoIt Smith Link to comment Share on other sites More sharing options...
Valuater Posted November 21, 2005 Share Posted November 21, 2005 maybe look at Autoit set options... Opt("RunErrorsFatal", 1) ;1=fatal, 0=silent set @error and/or error checking Opt("TrayIconDebug", 0) ;0=no info, 1=debug line info all in help 8) Link to comment Share on other sites More sharing options...
Ic3c0ld Posted November 21, 2005 Author Share Posted November 21, 2005 awesome thanks 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