Send global keystroke / fake a global hotkey from a Winforms application
<p>For my current winforms win7 project I need to simulate some global hotkey presses.</p>

<p>I tried sending the keystrokes with SendMessage directly to the program interceptin the hotkeys, but that doesnt work. The program doesnt seem to handle incoming hotkeys when it's foccused / send directly to them.</p>

<p>How would I send simulated keypresses so that they get recognized as Global Hotkeys?</p>

<p>Thanks in advance!</p>

<p>EDIT: I dont want to Set hotkeys for my app, I want to trigger them in another application From my app. So my app will send Keystrokes somewhere, to be picked up by the other app. I dont know where to send them, sending them directly doesnt work</p>