title: Application.Wait and AppActivate not working properly with SendKeys
body: <p>I have to sendkeys to notepad </p>
  
  <p>having th Notepad already opened the code is the following </p>
  
  <pre><code> AppActivate "Blocco Note"
   Application.Wait Now + TimeValue("00:00:02")
   Call SendKeys("sdfse", True)
  ....
   Call SendKeys("sdfse", True)
  </code></pre>
  
  <p>I even tried with Applicatio.OnTime</p>
  
  <pre><code>Sub test1
      AppActivate "Blocco Note"
      Application.OnTime Now + TimeValue("00:00:02"), "test2"
  End Sub
  
  Sub test2()
      Call SendKeys("sdfse", True)
      ....
      Call SendKeys("sdfse", True)
  end Sub
  </code></pre>
  
  <p>the problem is that it waits 2 seconds and only then it activate the notepad so the first sendkeys does not work</p>
  
  <p>could you pleas help me?</p>
  
  <p>thank you very much</p>
  
  <p><strong>EDIT: I am doing some tests and I noticed that the code works only when whe notepad is not minimized.</strong></p>