fgthhhh Posted May 4, 2010 Posted May 4, 2010 (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 Edited May 4, 2010 by fgthhhh
slayerz Posted May 4, 2010 Posted May 4, 2010 (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 May 4, 2010 by slayerz AUTOIT[sup] I'm lovin' it![/sup]
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