Jump to content

Recommended Posts

Posted (edited)

everytime my program occur a error, it pop up a window and exit. i just want to ignore error and continue the process or quit function. i put _IEErrorHandlerRegister()

and _IEErrorNotify (False) at start of the code but no use

post-53783-12729592036127_thumb.jpg

Edited by fgthhhh
Posted (edited)

Add this

$oError = ObjEvent("AutoIt.Error","ErrFunc")

Func ErrFunc() 
   $HexNumber=hex($oError.number,8) 
   Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
                "Number is: " & $HexNumber & @CRLF & _
                "Windescription is: " & $oError.windescription & @CRLF & _
                "Source is: " & $oError.source & @CRLF & _
                "Description is: " & $oError.description & @CRLF & _
                "Help file is: " & $oError.helpfile & @CRLF & _
                "Help context is: " & $oError.helpcontext & @CRLF & _
                "Last DLL error: " & $oError.lastdllerror & @CRLF & _
                "Script line: " & $oError.scriptline)
Endfunc
Edited by slayerz

AUTOIT[sup] I'm lovin' it![/sup]

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
×
×
  • Create New...