Reputation: 1795
How can I emulate keyboard in application running in background (hidden in tray). I want to press, hold, and relase keys on keyboard programatically. Also, I would like to move mouse around and be able to click.
Upvotes: 5
Views: 8079
Reputation: 314
You can also try the Windows.Forms.SendKeys API
Here is a How-To: How to: Simulate Mouse and Keyboard Events in Code
Upvotes: 1