title: Auto it how to check if window appears and close
body: <p>How do I check if a specific windoww appears in Autoit.</p>
  
  <p>At the moment I am running with Auto it Adobe After Effect,
  so far so good.</p>
  
  <p>The problem is that a warning message pops up if the user does not have quick time installed.</p>
  
  <p>Now I want to check if that window appears and is active and then close it.</p>
  
  <p>So far I have this but did not work:</p>
  
  <pre><code>    Local $iPID = Run("C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files\AfterFX.exe", "", @SW_SHOWMAXIMIZED)
  
      WinWait("[CLASS:AfterEffects]", "", 1000)
  
      Sleep(200000)
  
     ; if qicktime warning eror appears
     If WinExists ("DroverLord - Window Class", "") Then
        Send ("{ENTER}")
     EndIf
  </code></pre>