title: AppActivate Function for windows with the same title and under one Process
body: <p>I a using a very simple VBScript to switch between numerous screens and refreshing then before pausing and moving on, however two of the screens I want to switch between are named the same, any help appreciated. </p>
  
  <pre><code>Option Explicit
  Dim WshShell
  Set WshShell = WScript.CreateObject("WScript.Shell")
  Do
      WScript.Sleep 3000
      WshShell.AppActivate("Inbox - Microsoft Outlook")
      WScript.Sleep 3000
      WshShell.AppActivate("CSE Task Monitor")
      WSHShell.SendKeys "{F5}" 
      WScript.Sleep 3000
      WshShell.AppActivate("website - Windows Internet Explorer")
      WSHShell.SendKeys "{F5}" 
  
  
  Loop
  </code></pre>
  
  <p>Thanks all.
  Steve</p>