By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,727 Members | 757 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,727 IT Pros & Developers. It's quick & easy.

need progid for Firefox - to open a firefox through WScript.CreateObject

P: 4
I am trying to open a Firefox window using WScript.CreateObject. But I cannot find the progid for Firefox.
Here is my code that works for IE.
Expand|Select|Wrap|Line Numbers
  1. var objIEResults = WScript.CreateObject("InternetExplorer.Application", "objIEResults_");
  2. var objIE = WScript.CreateObject("InternetExplorer.Application", "objIE_");
  3. var url  = "http://www.google.com" 
  4. objIE.Height = 1280;
  5. objIE.Width = 1024;   
  6. objIE.navigate(url); 
  7. objIE.Visible = true;
  8.  
I want to do a similar thing with Firefox. But I couldnt find the equivalent progid for Firefox. i.e.

var objIE = WScript.CreateObject(what should i put here?);

I looked up in the HKEY_CLASSES_ROOT and the entries for Firefox dont work.
What do i do? please help.

Thanks.
Sep 19 '07 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Are you using IE for this?
Sep 19 '07 #2

P: 4
The above code works on IE. I want the Progid for firefox so that I could use it to CreateObject(Firefox Progid).
Sep 19 '07 #3

acoder
Expert Mod 15k+
P: 16,027
The above code works on IE. I want the Progid for firefox so that I could use it to CreateObject(Firefox Progid).
Only IE supports ActiveX, so this probably won't be possible.
Sep 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.