Page 1 of 1 1
Topic Options
#208776 - 2014-04-03 02:21 PM How to open FireFox with CreateObject
OliDay5 Offline
Just in Town

Registered: 2010-03-15
Posts: 2
Loc: Europe / Belgium
Hello, it's my first post here...

I found how to open IE with CreateObject.
 Code:
$IE = CreateObject("InternetExplorer.Application")
$IE.Visible=1
$IE.Navigate("http://www.mywebsite.htm") 

But how to call FireFox with this Method ?
 Code:
$FF = CreateObject("FireFox.Application")
$FF.Visible=1
$FF.Navigate("http://www.mywebsite.htm")

Don't work...

Is there another way to call the default browser to resolve this problem ?
I try
 Code:
SHELL "http://www.mywebsite.htm"

But it don't works too....



Edited by OliDay5 (2014-04-03 02:22 PM)

Top
#208777 - 2014-04-03 02:37 PM Re: How to open FireFox with CreateObject [Re: OliDay5]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
Firefox doesnt have a Com object that I am aware of... Only option is command line...

http://kb.mozillazine.org/Command_line_arguments

Probably something like...

 Code:
shell "path\firefox.exe -new-window http://www.mywebsite.htm"
_________________________
(... better days ahead)

Top
#208778 - 2014-04-03 02:46 PM Re: How to open FireFox with CreateObject [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
Although you would have less control over windows/tabs and what the default browser is... this also works:

 Code:
shell "%comspec% /c start http://www.kixtart.org"
_________________________
(... better days ahead)

Top
#208779 - 2014-04-03 03:02 PM Re: How to open FireFox with CreateObject [Re: Allen]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Firefox doesn't support com objects
Top
#208780 - 2014-04-04 03:29 PM Re: How to open FireFox with CreateObject [Re: Arend_]
OliDay5 Offline
Just in Town

Registered: 2010-03-15
Posts: 2
Loc: Europe / Belgium
Thanks a lot !!!!!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.057 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org