Interface IKeyboardDevice
An interface that provides low-level keyboard operations.
public interface IKeyboardDevice
Methods
KeyDown(Keys)
Presses and holds the specified key using a keyboard virtual key.
void KeyDown(Keyboard.Keys key)
Parameters
keyKeyboard.KeysThe keyboard code of the key to hold. Possible values: Keyboard.Keys
KeyDown(byte)
Presses and holds the specified key using a keyboard scan code.
void KeyDown(byte keyScanCode)
Parameters
keyScanCodebyteThe keyboard scan code of the key to hold.
Remarks
Supports the PS/2 Keyboard scan code set 1.
KeyUp(Keys)
Releases the specified key based on its keyboard virtual key.
void KeyUp(Keyboard.Keys key)
Parameters
keyKeyboard.KeysThe keyboard code of the key to release.Possible values: Keyboard.Keys
KeyUp(byte)
Releases the specified key based on its keyboard scan code.
void KeyUp(byte keyScanCode)
Parameters
keyScanCodebyteThe keyboard scan code of the key to release.
Remarks
Supports the PS/2 Keyboard scan code set 1.
PressKey(Keys)
Presses the specified key using a keyboard virtual key.
void PressKey(Keyboard.Keys key)
Parameters
keyKeyboard.KeysThe keyboard code of the key.Possible values: Keyboard.Keys
PressKey(byte)
Presses the specified key using a keyboard scan code.
void PressKey(byte keyScanCode)
Parameters
keyScanCodebyteThe keyboard scan code of the key.
Remarks
Supports the PS/2 Keyboard scan code set 1.
SendString(string)
Types the specified string.
void SendString(string stringToSend)
Parameters
stringToSendstringThe string to type.