title: Sending keypresses in Visual Basic console application
body: <p>I'm trying to develop a Visual Basic console application to optimise a structure using Genetic Algorithms. The software I'm using occasionally throws popups to save the updated structure. I want to write a piece of code that simulates key presses (I want to press the enter key) on the active window so that I don't have manually press the enter key every 15 minutes.</p>
  
  <p>I tried using</p>
  
  <pre><code>    SendKeys.SendWait({"ENTER"})
  </code></pre>
  
  <p>but there's no SendKeys in Console Application.</p>