Jump to content

Recommended Posts

Posted

I am trying to prevent the dialog box from appearing when the windescription error is following message "The specified domain either does not exist or could not be contacted" 

but it still pops up

even if i comment the msgbox line the message box with the same text shows

Global $oGlobalCOMErrorHandler = ObjEvent("AutoIt.Error", "_ErrFuncGlobal")

Func _ErrFuncGlobal()

    If StringInStr($oGlobalCOMErrorHandler.windescription, "The specified domain either does not exist or could not be contacted") = 0 Then
        $error = @ScriptName & " (" & $oGlobalCOMErrorHandler.scriptline & ") : ==> Global COM error handler - COM Error intercepted !" & @CRLF & _
                @TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex($oGlobalCOMErrorHandler.number) & @CRLF & _
                @TAB & "err.windescription:" & @TAB & $oGlobalCOMErrorHandler.windescription & @CRLF & _
                @TAB & "err.description is: " & @TAB & $oGlobalCOMErrorHandler.description & @CRLF & _
                @TAB & "err.source is: " & @TAB & @TAB & $oGlobalCOMErrorHandler.source & @CRLF & _
                @TAB & "err.helpfile is: " & @TAB & $oGlobalCOMErrorHandler.helpfile & @CRLF & _
                @TAB & "err.helpcontext is: " & @TAB & $oGlobalCOMErrorHandler.helpcontext & @CRLF & _
                @TAB & "err.lastdllerror is: " & @TAB & $oGlobalCOMErrorHandler.lastdllerror & @CRLF & _
                @TAB & "err.scriptline is: " & @TAB & $oGlobalCOMErrorHandler.scriptline & @CRLF & _
                @TAB & "err.retcode is: " & @TAB & "0x" & Hex($oGlobalCOMErrorHandler.retcode)
        
        MsgBox($msg_error, $script_name, "COM ERROR: " & @CRLF & @CRLF & $error)        
    EndIf

EndFunc   ;==>_ErrFuncGlobal

what is going on?

  • 2 weeks later...
  • Solution
Posted

my apologies, there was another script running in the background that was catching the COM error.

sorry for the delay was out of the country.

Thank you!

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...