title: Handle a popup window with autohotkey
body: <p>I am simply automating the pressing of a start button over and over again as the button only remains on for 20 minutes and 30 seconds. Randomly the program throws an error that causes the button to turn off early. The popup window has no title. I need to press enter (or something) to clear the popup window and then press the start button again. Heres what I have so far and it is not handling the popup error.</p>
  
  <p>How can I press enter to clear the error message and restart the loop?</p>
  
  <pre><code>if WinExist("3ple") 
  WinActivate
  sleep 100
  
  Loop 84
  
  {
  Click 1112, 406
  Sleep 1232000
  
  if WinExist("")
  WinActivate
  Send {Enter}
  }
  </code></pre>