-
IE events with VBScript
I try executing the following script using the Windows Scripting Host (v5.1):
dim browser
sub browser_DownloadComplete(disp, url)
WScript.Echo "URL " & url & " loaded."
end sub
set browser = CreateObject("InternetExplorer.Application", "browser_")
browser.menubar = false
browser.toolbar = false
browser.statusbar = false
browser.resizable = true
browser.Navigate "http://www.microsoft.com"
browser.visible = true
I get the following run-time error:
The remote server machine does not exist or is unavailable: 'CreateObject'
What gives?
-
I think this might be your problem:
set browser = WScript.CreateObject("InternetExplorer.Application", "browser_")
You didn't add the WScript. in the front of CreateObject().
Chris
-
Merci ... I should've found that myself, shouldn't I?