View Full Version : Displaying Internet Explorer
stingray
01-04-2002, 11:14 PM
I've found an article for WSH that displays an internet explorer window, problem is it's in JScript. Can anyone tell me how to display an internet explorer window with WSH VBScript? JScript example:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmind99/html/interactiontextfigs.asp
adamdelves
01-06-2002, 08:21 AM
The internetexplorer apllicaiton object does can do just about anything that you'd need.
set ie = Wscript.CreateObject("internetexplorer.applicaiton", "event_")
ie.visible = true
ie.navigate webSite
do
loop while ie.readyState <> 4
Sub event_onQuit
MsgBox "Internet Explorer Has Been Closed - Script can no longer continue"
End Sub
This will script will navigate to a website and detect whne the ie Explorer window has been closed while the page is loading and exits the script to avoid an error.
The documentation for this object is on the following website. Its amazing what you can do:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/mshtml.asp
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.