Package com.hp.lft.sdk
Interface KeyboardDevice
public interface KeyboardDevice
An interface that provides low-level keyboard operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidkeyDown(byte keyScanCode) Deprecated.voidkeyDown(Keyboard.Keys key) Presses and holds the specified key using a keyboard virtual key.voidkeyUp(byte keyScanCode) Deprecated.usekeyUp(Keyboard.Keys)instead.voidkeyUp(Keyboard.Keys key) Releases the specified key based on its keyboard virtual key.voidpressKey(byte keyScanCode) Deprecated.usepressKey(Keyboard.Keys)instead.voidpressKey(Keyboard.Keys key) Presses the specified key using a keyboard virtual key.voidsendString(String stringToSend) Types the specified string.
-
Method Details
-
pressKey
Deprecated.usepressKey(Keyboard.Keys)instead.Presses the specified key using a keyboard scan code.
Supports the PS/2 Keyboard scan code set 1.- Parameters:
keyScanCode- the keyboard scan code of the key.- Throws:
GeneralLeanFtException- if error occurs during execution
-
pressKey
Presses the specified key using a keyboard virtual key.- Parameters:
key- the keyboard code of the key. Possible values:Keyboard.Keys- Throws:
GeneralLeanFtException- if error occurs during execution
-
keyDown
Deprecated.usekeyDown(Keyboard.Keys)instead.Presses and holds the specified key using a keyboard scan code.
Supports the PS/2 Keyboard scan code set 1.- Parameters:
keyScanCode- the keyboard scan code of the key to hold.- Throws:
GeneralLeanFtException- if error occurs during execution
-
keyDown
Presses and holds the specified key using a keyboard virtual key.- Parameters:
key- the keyboard code of the key to hold. Possible values:Keyboard.Keys- Throws:
GeneralLeanFtException- if error occurs during execution
-
keyUp
Deprecated.usekeyUp(Keyboard.Keys)instead.Releases the specified key based on its keyboard scan code.
Supports the PS/2 Keyboard scan code set 1.- Parameters:
keyScanCode- the keyboard scan code of the key to release.- Throws:
GeneralLeanFtException- if error occurs during execution
-
keyUp
Releases the specified key based on its keyboard virtual key.- Parameters:
key- the keyboard code of the key to release. Possible values:Keyboard.Keys- Throws:
GeneralLeanFtException- if error occurs during execution
-
sendString
Types the specified string.- Parameters:
stringToSend- the string to type.- Throws:
GeneralLeanFtException- if error occurs during execution
-
keyDown(Keyboard.Keys)instead.