title: VB.NET Send keys to other application with focusing on it
body: <p>I want to send keys to other application with focusing on it with VB.NET. I want to be able to send a Keydown message and a KeyUp message. But without focusing on the application I want to send keys to. </p>
  
  <p>The following example focuses on the application when it is sending the keys. I don't want that.
  <a href="http://www.codeproject.com/Articles/18366/Sending-Keystrokes-to-another-Application-in-C" rel="nofollow">http://www.codeproject.com/Articles/18366/Sending-Keystrokes-to-another-Application-in-C</a></p>
  
  <p>The reason for this is I want to be able to Login with 2 games/windows onto 1 server and play with both of them. I have macros keys so I can set them to run this code. which will for example move the character on the 2nd game window while I control the character on my 1st game window. Like send "W" to move the 2nd character forward.</p>
  
  <p>Any help?</p>