Table of Contents

Class Keyboard

A class that enables low-level keyboard device operations. When working in a grid configuration, use Keyboard in order to get the IKeyboardDevice object, which enables keyboard operations on a specific environment or grid node.

Inheritance
Keyboard
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Keyboard

Constructors

Keyboard()

Declaration
public Keyboard()

Methods

KeyDown(Keys)

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

Declaration
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static void SendString(string stringToSend)
Parameters
Type Name Description
string stringToSend

The string to type.