title: How to simulate pressing a few keys on the keyboard, including special?
body: <p>Installed the <code>win32com module.client</code> it is possible to do simulated keystrokes (<code>Ctrl + C</code>):</p>
  
  <pre><code>shell = win32com.client.Dispatch('WScript.Shell')
  shell.SendKeys('^a^x')
  </code></pre>
  
  <p>However, in the process there was one very strange feature: all of these simulation pressing the run in background thread. In my case this is unacceptable. How to make the whole program waited until the simulated depression? Tried <code>threading</code> - turned, but the program is now running 3s 0.1 s, which is unacceptable.</p>