Method KeyPress
KeyPress(Key, int?)
Simulates pressing and releasing a keyboard key.
Declaration
void KeyPress(Key key, int? keyPressDelay = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | The key to simulate. |
| int? | keyPressDelay | Optional delay (in milliseconds) before the key press. Uses KeyPressDelay if not specified. |