Send key to inactive window of process
<p>I'm wanting to create a simple program in C# which sends the SPACE key to an inactive window or process (Wow.exe). However, I have no knowledge of C# what so ever so if you want to try help me please do but if you can't be bothered explaining to a noob that's fine ;)</p>

<p>So basically the little program will be for the game World of Warcraft and will hopefully send a SPACE key to the game every 30 seconds and make the character jump. Preventing the character to automatically going away from keyboard.</p>

<p>It will be a single buttoned program which will start sending the SPACE key once you click the button and will stop when the program is closed. But, I want it to send the key to the game even if it isn't the current active window. So I can be watching a film on Netflix and have it doing it in the background.</p>

<p>What would I put inside this when the button is clicked?...</p>

<pre><code>private void btnStart_Click(object sender, EventArgs e)
{

}
</code></pre>

<p>If it's going more complicated than inserting some code inside there just say and I won't bother trying to make it :P</p>
