Sign in to follow this  
Followers 0
Ic3c0ld

Custom Error Handling

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Func Error(Num = -1)
   Select
      Case $ErrorNum = %numberuwant%
         MsgBox(0, "Error", "Error Information")
      Case Else
         MsgBox(0, "Error", "Unknown Error")
   EndSelect
EndFunc

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

awesome thanks

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