title: Identify browser instance(non IE) using VBScript
body: <p>i am creating an application which opens a web browser( other than IE ) and navigates to a specific URL using VBScript and also identify the instance of the browser if it is already opened.
  The browser can be Safari, Chrome, Firefox or Opera.
  Till now i was able to open the browser and navigate to url using VBScript. Here's what i did -</p>
  
  <p>Specific to IE</p>
  
  <pre><code>Dim ieObj As Object
  Set ieObj = CreateObject("InternetExplorer.Application")
  ieObj.Visible = True
  ieObj.Navigate url
  </code></pre>
  
  <p>url is the address to which the browser should  navigate to.</p>
  
  <p>For other browser -</p>
  
  <pre><code>Dim objShell
  Set objShell = CreateObject("WScript.Shell")
  objShell.Run ("""C:\Program Files (x86)\Mozilla Firefox\firefox.exe""") &amp; url
  Set objShell = Nothing
  </code></pre>
  
  <p>here i can change the path for the application and it opens up fine.(i can change it more meaningful code so that's not an issue).</p>
  
  <p>Now, i have the mechanism ready to detect IE browser instance-</p>
  
  <pre><code>Dim obj_Shell As Object
  Dim obj_window_open As Object
  Set obj_Shell = CreateObject("shell.application")
  
  For Each obj_window_open In obj_Shell.Windows
  //Logic to achieve functionality
  //..End Each Loop
  </code></pre>
  
  <p>This piece of code works perfectly fine for IE and IE only.</p>
  
  <p>Is there any way that we can do the same for other browsers like firefox and chrome? 
  Help would be greatly appreciated since i have started learning VBScript a few days back.</p>