Jump to content
Sign in to follow this  

how to disable error window

Recommended Posts


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 by fgthhhh

Share this post

Link to post
Share on other sites

Add this

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

Func ErrFunc() 
   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)
Edited by slayerz

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.