This class contains utility methods related to keys on the keyboard.
Declaration Syntax
C# |
public class KeyboardKey
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
KeyboardKey(Keys) |
Initializes a new instance of this class for a given key.
| |
AsyncState |
The global state of this key.
| |
InjectKeyboardEvent(Keys, Byte, UInt32, UIntPtr) |
Inject a keyboard event into the event loop, as if the user performed
it with his keyboard.
| |
InjectMouseEvent(UInt32, UInt32, UInt32, UInt32, UIntPtr) |
Inject a mouse event into the event loop, as if the user performed
it with his mouse.
| |
KeyName |
Determine the name of a key in the current keyboard layout.
| |
Press()()() |
Press this key.
| |
PressAndRelease()()() |
Press this key and release it.
| |
Release()()() |
Release this key.
| |
State |
The state of this key, as seen by this application.
|
Inheritance Hierarchy
Object | |
KeyboardKey |