Hi All
At vbs language, the WSCript.CreateObject method allowed to set as second parameter a "preffix" for defining event triggered functions associated to the COM object. For instance, for the "InternetExplorer.Application":
Set oIE = WScript.CreateObject("InternetExplorer.Application", "eventsIE_")
Sub eventsIE_NavigateComplete2(pDisp,URL)
....
End Sub
At VBS other aternative was the WScript.ConnectObject method
In powershell, the new-object method does not allow this parameter.
How is it possible to catch COM associated events and launch a given Function in powershell language?
If that´s not possible and I cannot catch the navigateComplete2 event, how may I check from PS code that the navigation to a given URL has been finished by querying the "InternetExplorer.Application" COM object?
Than you so much in adance