Package rsb.methods
Class Keyboard
java.lang.Object
rsb.methods.MethodProvider
rsb.methods.Keyboard
Keyboard related operations.
-
Field Summary
Fields inherited from class rsb.methods.MethodProvider
methods -
Method Summary
Modifier and TypeMethodDescriptionvoidpressKey(char c) Presses and holds a given key.voidreleaseKey(char c) Releases a given held key.voidsendKey(char c) Presses and releases a given key.voidTypes a given string.voidsendTextInstant(String text, boolean pressEnter) Types a given string instantly.
-
Method Details
-
sendKey
public void sendKey(char c) Presses and releases a given key.- Parameters:
c- The character to press.
-
sendText
Types a given string.- Parameters:
text- The text to press/send.pressEnter-trueto press enter after pressing the text.
-
sendTextInstant
Types a given string instantly.- Parameters:
text- The text to press/send.pressEnter-trueto press enter after pressing the text.
-
pressKey
public void pressKey(char c) Presses and holds a given key.- Parameters:
c- The character to press.- See Also:
-
releaseKey
public void releaseKey(char c) Releases a given held key.- Parameters:
c- The character to release.- See Also:
-