title: AutoHotKey : Get mdi window
body: <p>While automating an process in a MDI application, I try to use AutoHotKey. </p>
  
  <p>On a given time, a new mdi child window popups in the MDI application, and I would like to "wait" my autohotkey script until this is opened.</p>
  
  <p>So I was heading for a loop that checks if the control (mdi child) exists.</p>
  
  <p>Using ControlGet, I can't seem to get the mdi child.</p>
  
  <p>This is the child which I would like to know if exists or not.</p>
  
  <p>AutoSpy:</p>
  
  <blockquote>
    <p>( Now Under Mouse Cursor )</p>
    
    <p>ClassNN: FNWND31101<br>
    Text: Phrase Extraction</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/6oI15.png" alt="enter image description here"></p>
  
  <p>Perhaps I am not using the correct AutoHotKey function to find this?</p>
  
  <p>Script</p>
  
  <pre><code>WinWait, FNWND31101,, 10
  if ErrorLevel
  {
    MsgBox, WinWait timed out.
    return
  } else 
  {
    MsgBox, Found control  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/XqpPq.png" alt="enter image description here"></p>