Package com.hp.lft.sdk
Class Keyboard
java.lang.Object
com.hp.lft.sdk.Keyboard
A class that enables low-level keyboard operations.
When working in a grid configuration, use
When working in a grid configuration, use
DesktopEnvironment.getKeyboard() in order to get the
KeyboardDevice object, which enables keyboard operations on a
specific environment or grid node.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumKeys which can be used in sending keyboards events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidkeyDown(byte keyScanCode) Deprecated.static voidkeyDown(Keyboard.Keys key) Presses and holds the specified key using a keyboard virtual key.static voidkeyUp(byte keyScanCode) Deprecated.usekeyUp(Keys)instead.static voidkeyUp(Keyboard.Keys key) Releases the specified key based on its keyboard virtual key.static voidpressKey(byte keyScanCode) Deprecated.usepressKey(Keys)instead.static voidpressKey(Keyboard.Keys key) Presses the specified key using a keyboard virtual key.static voidsendString(String stringToSend) Types the specified string.
-
Constructor Details
-
Keyboard
public Keyboard()
-
-
Method Details
-
pressKey
Deprecated.usepressKey(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(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(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(Keys)instead.