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 enum
Keys which can be used in sending keyboards events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
keyDown
(byte keyScanCode) Deprecated.static void
keyDown
(Keyboard.Keys key) Presses and holds the specified key using a keyboard virtual key.static void
keyUp
(byte keyScanCode) Deprecated.usekeyUp(Keys)
instead.static void
keyUp
(Keyboard.Keys key) Releases the specified key based on its keyboard virtual key.static void
pressKey
(byte keyScanCode) Deprecated.usepressKey(Keys)
instead.static void
pressKey
(Keyboard.Keys key) Presses the specified key using a keyboard virtual key.static void
sendString
(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.