Table of Contents

Class Keyboard

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

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.

public class Keyboard
Inheritance
Keyboard
Inherited Members

Constructors

Keyboard()

public Keyboard()

Methods

KeyDown(Keys)

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

public static void KeyDown(Keyboard.Keys key)

Parameters

key Keyboard.Keys

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.

public static void KeyDown(byte keyScanCode)

Parameters

keyScanCode byte

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.

public static void KeyUp(Keyboard.Keys key)

Parameters

key Keyboard.Keys

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

KeyUp(byte)

Releases the specified key based on its keyboard scan code.

public static void KeyUp(byte keyScanCode)

Parameters

keyScanCode byte

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.

public static void PressKey(Keyboard.Keys key)

Parameters

key Keyboard.Keys

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

PressKey(byte)

Presses the specified key using a keyboard scan code.

public static void PressKey(byte keyScanCode)

Parameters

keyScanCode byte

The keyboard scan code of the key.

Remarks

Supports the PS/2 Keyboard scan code set 1.

SendString(string)

Types the specified string.

public static void SendString(string stringToSend)

Parameters

stringToSend string

The string to type.