title: Using a batch file to send the TAB key and enter password
body: <p>I have a batch file that opens an exe program on my pc like so:</p>
  <pre><code>PING -n 2 localhost &gt;nul
  start &quot;anything here&quot; &quot;C:\Program Files (x86)\myfolder\myprogram.exe&quot;
  </code></pre>
  <p>This opens a form with an area to enter my password (username is already there as it has a &quot;remember me&quot; box), but the cursor is active in the username field, so when it opens I need to:</p>
  <ol>
  <li>Hit the TAB key once to go to the password box</li>
  <li>Enter my password</li>
  <li>Hit the TAB key again TWICE to go to the login box</li>
  <li>Press the ENTER key once to login</li>
  </ol>
  <p>I have only had basic experience opening programs via batch files, so I am unsure how to proceed with the above.</p>