title: winwait not catching "message from webpage"
body: <p>I'm trying to use autohotkey to acknowledge an website's timeout message and keep the session alive automatically.  Winwait seems like the ideal function for this, but for some reason it's not doing what I think it should be doing.</p>
  
  <p>Here is the function I wrote that is not working:</p>
  
  <pre><code>  DetectHiddenWindows, On
    SetTitleMatchMode 2
    winwait, Message from webpage, Your TrackWise session is expiring
      ControlClick, Button1, Message from webpage, Your TrackWise session is expiring
    return
  </code></pre>
  
  <p>The window is a popup from internet explorer.  Here is what the window spy tells me about the window I want to detect and automatically click OK on:</p>
  
  <pre><code>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Window Title &amp; Class )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  Message from webpage
  ahk_class #32770
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Mouse Position )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  On Screen:  1503, 692  (less often used)
  In Active Window:   1219, 259
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Now Under Mouse Cursor )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  
  Color:  0xF0F0F0  (Blue=F0 Green=F0 Red=F0)
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Active Window Position )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  left: 284     top: 433     width: 484     height: 174
  
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Status Bar Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Visible Window Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  OK
  Cancel
  Your TrackWise session is expiring in 15 minute(s). 
  If you would like to continue click OK, otherwise you will be logged off TrackWise.
  
  &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;( Hidden Window Text )&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
  
  &gt;&gt;&gt;&gt;( TitleMatchMode=slow Visible Text )&lt;&lt;&lt;&lt;
  
  &gt;&gt;&gt;&gt;( TitleMatchMode=slow Hidden Text )&lt;&lt;&lt;&lt;
  </code></pre>
  
  <p>For whatever reason, winwait isn't getting it.  If I use a hotkey like this:</p>
  
  <pre><code>#k::ControlClick , Button1, Message from webpage, Your TrackWise session is expiring
  </code></pre>
  
  <p>Then win+k clicks the right button, keeps the webpage session alive like I want, just not automatically like I want.</p>
  
  <p>Any suggestions?  Thank you!!!</p>