title: SendKeys() permission denied error in Visual Basic
body: <p>I am trying to use the <code>SendKeys()</code> command to another window with my VB6 app.</p>
  
  <p>What I wanted is to click a button, and then have 10 seconds to go to the other window before the app sends some keys to that window. I got everything sorted but for some reason when I call something like this:</p>
  
  <pre><code>SendKeys ("A")
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Run-time error '70':
  
  Permission denied
  </code></pre>
  
  <p>Does anyone know a way around this? Thanks.</p>