I\'m developing an app that have to send some keys or mouse events to the active window.
I\'m using this class: Mouse
using System.R
There is an open source project on CodePlex (Microsoft's open source website)
Windows Input Simulator (C# SendInput Wrapper - Simulate Keyboard and Mouse)
http://inputsimulator.codeplex.com/
It has examples and real simple to use.