ComObjError() [AHK_L 53+]
Enables or disables notification of COM errors.
Enabled := ComObjError([Enable])
Parameters
- Enable
A boolean value (true or false). Optional.
- Enabled
[v1.0.91+]: Receives the setting which was in effect before the function was called.
General Remarks
After accessing a COM object, A_LastError contains the HRESULT code returned by the COM object's IDispatch::Invoke function. Scripts may implement their own error-handling by calling ComObjError(false)
to disable error notifications and consulting the value of A_LastError.