Jump to content

Recommended Posts

Posted

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?

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

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
  • Recently Browsing   0 members

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