title: Check all Tabs in browser with AHK
body: <p>I have this code allready</p>
  
  <pre><code>!^j::
      If WinExist("The Title")
          WinActivate
      else
          Run, https://webpage/index.php
  Return
  </code></pre>
  
  <p>Whenever I hit the hotkey, if the web page wanted is open, then the browser is maximized. But if the web page is not open, I have to open the browser (or a new Tab if browser allready open) and go to that page. Up to now everything seems good, but there is one problem...</p>
  
  <p>If the browser is open, and that page is also open <strong>but the browser is no sitting in that tab</strong> the program open a new tab, which means that every time the browser is in another Tab than the one containing the page looked for, a new tab will be open, how to prevent this?</p>
  
  <p>Is there anyway to fix it? like a function to get all browser tabs and doing a loop?</p>
  
  <p><strong>Edit:</strong> Thanks to @Jsmith2800, now I have this code:</p>
  
  <pre><code>!^j::
      SetTitleMatchMode, 2
      WinActivate, - Mozilla Firefox
      SetTitleMatchMode, 1
      If WinExist("The Title")
          WinActivate
      else {
          winGetActiveTitle, Title
          loop{
              send ^{TAB}
              If WinExist("The Title")
                  break
              If WinExist(Title)
                  break
          }
          If WinExist(Title)
              Run, https://webpage/index.php
      }
  Return
  </code></pre>
  
  <p>First, I have to open the browser window, so the Ctrl+Tab actually change tab. So the first 3 lines are for opening Mozilla Firefox.</p>
  
  <p>Then I ask if the page I'm looking for is in the current tab, if it is, then only activate that tab. But if it is not, then get the current Title and start a loop.</p>
  
  <p>In that loop, first change tab, then ask again if that new tab is the one I was looking for. If the new tab is the one, break the loop and return. If not, ask if the new tab is the same one before starting the loop, if that is true, then the wanted page is not openned, so open it and break the loop.</p>
  
  <p>This is working right, except for one little thing: <strong>The tabs are acceded in a random way, so sometimes it goes back to the <code>Title</code> page before reaching the wanted one</strong> How can I make it not random. Allready tried with <code>SetWinDelay, 250</code> but didn't work.</p>