gcue Posted July 16, 2025 Posted July 16, 2025 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?
Developers Jos Posted July 16, 2025 Developers Posted July 16, 2025 Are you sure that it is the MsgBox() from this code displaying the error, as that test will be not true when the text matches? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Solution gcue Posted July 28, 2025 Author Solution Posted July 28, 2025 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!
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