Table of Contents

Interface IKeyboardDevice

An interface that provides low-level keyboard operations.

Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public interface IKeyboardDevice

Methods

KeyDown(Keys)

Presses and holds the specified key using a keyboard virtual key.

Declaration
void KeyDown(Keyboard.Keys key)
Parameters
Type Name Description
Keyboard.Keys key

The keyboard code of the key to hold. Possible values: Keyboard.Keys

KeyDown(byte)

Presses and holds the specified key using a keyboard scan code.

Declaration
void KeyDown(byte keyScanCode)
Parameters
Type Name Description
byte keyScanCode

The 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.

Declaration
void KeyUp(Keyboard.Keys key)
Parameters
Type Name Description
Keyboard.Keys key

The keyboard code of the key to release.Possible values: Keyboard.Keys

KeyUp(byte)

Releases the specified key based on its keyboard scan code.

Declaration
void KeyUp(byte keyScanCode)
Parameters
Type Name Description
byte keyScanCode

The 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.

Declaration
void PressKey(Keyboard.Keys key)
Parameters
Type Name Description
Keyboard.Keys key

The keyboard code of the key.Possible values: Keyboard.Keys

PressKey(byte)

Presses the specified key using a keyboard scan code.

Declaration
void PressKey(byte keyScanCode)
Parameters
Type Name Description
byte keyScanCode

The keyboard scan code of the key.

Remarks

Supports the PS/2 Keyboard scan code set 1.

SendString(string)

Types the specified string.

Declaration
void SendString(string stringToSend)
Parameters
Type Name Description
string stringToSend

The string to type.