scripting:api:wscript:connect-object

ConnectObject

Method of IWScript

Connects the object's event sources to functions with a given prefix

WScript.ConnectObject(pobjEventSource, strPrefix);
WScript.ConnectObject pobjEventSource, strPrefix
HRESULT hr = WScript.ConnectObject(pobjEventSource, strPrefix);