Описание тега inputsimulator
Input Simulator provides easy-to-use functions for simulating keystrokes or mouse movement especially useful in user interface automation or unit testing.
Example for keyboard input:
var inputSimulator = new InputSimulator();
inputSimulator.Keyboard.KeyDown(VirtualKeyCode.SHIFT);
inputSimulator.Keyboard.KeyPress(VirtualKeyCode.X);
inputSimulator.Keyboard.KeyUp(VirtualKeyCode.SHIFT);
Example for mouse movement:
var inputSimulator = new InputSimulator();
inputSimulator.Mouse.MoveMouseBy(25, -60);
Visit the project's homepage for further information.