Package com.hp.lft.sdk
Interface KeyboardDevice
public interface KeyboardDevice
An interface that provides low-level keyboard operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
keyDown
(byte keyScanCode) Deprecated.void
keyDown
(Keyboard.Keys key) Presses and holds the specified key using a keyboard virtual key.void
keyUp
(byte keyScanCode) Deprecated.usekeyUp(Keyboard.Keys)
instead.void
keyUp
(Keyboard.Keys key) Releases the specified key based on its keyboard virtual key.void
pressKey
(byte keyScanCode) Deprecated.usepressKey(Keyboard.Keys)
instead.void
pressKey
(Keyboard.Keys key) Presses the specified key using a keyboard virtual key.void
sendString
(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.