Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

SimWinKeyboard

Usage

Install SimWinKeyboard via NuGet or pull the source and add a project reference.

To simulate a 'Q' keystroke:

SimKeyboard.Press((byte)'Q');

To hold the 'Q' key for a prolonged time until later releasing it:

SimKeyboard.KeyDown((byte)'Q');
...
SimKeyboard.KeyUp((byte)'Q');

Advanced Keyboard Simulation

If you have more advanced scenarios than the simple API above supports, check out the InteropKeyboard.keybd_event DLL import.