Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control FireFox Window

Status
Not open for further replies.

pshelfo

IS-IT--Management
Apr 27, 2004
16
US
I have a web site that I load using a vbscript and strip down version of IE. I use the the WScript.CreateObject("InternetExplorer.Application") parameters to accomplish the task. I have just been assigned the task of creating the same type of output but this time using Firefox. Can anyone tell me if there is code similiar to the following that I can launch a Firefox browser with:

'Variables
Dim objIE
Set objIE = WScript.CreateObject("InternetExplorer.Application")

'Internet Explorer Settings
objIE.AddressBar = False
objIE.FullScreen = False
objIE.MenuBar = False
objIE.Resizable = True
objIE.Silent = True
objIE.StatusBar = False
objIE.TheaterMode = False
objIE.ToolBar = False
objIE.Visible = 100
objIE.Visible = True

'Load Web App
objIE.Navigate "
 
You could launch Firefox with CreateObject ("MozillaMapi.1") but it doesn't have these class IDs. Easiest way is to then sendkey to disable various menus.

Another way is to use WScript.Shell to run up firefox.exe with the web page as the start address.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top