keyboardAction(action, key_code_or_string)
Class: SwingUI.
Description:
Performs a key press, key release, or key type operation. For value use one character string when using "Press" or "Release" action, or a string of text to be typed when using "Type" action.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
KeyAction.[Press|Release|Type] |
|
|
|
number | Array.<number> | string |
Key code, array of key codes, or a string, which will be converted to an array of key codes. |
Returns:
Returns this instance of SwingUI class.
Type: SwingUI
Examples:
Performing a key type action:
ui.keyboardAction(KeyAction.Type, "A");
