Input-Text
Command Description
Input text freely
Command Prototype
Keyboard.Input(sText,optionArgs)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sText | True | string | "" | Input content |
iDelayAfter | None | number | 300 | Delay time (in milliseconds) after executing the activity is 300 milliseconds |
iDelayBefore | None | number | 200 | The delay time (in milliseconds) before any operations are executed is by default 200 milliseconds |
sSimulate | None | enum | "message" | Available operation types are: Simulated Operation (simulate), System Message(message). Default: System Message(message) |
Demo
TracePrint "--------------------Enter text--------------------"
// --------------------------------------------------------
// [Remarks] Enter text, enter text at the cursor position
// Input parameter 1:
// sText--input content
// Input parameter 2:
// optionArgs--Optional parameters (including: delay after execution/delay before execution/operation type).Type:Dict
// Command prototype: Keyboard.Input(sText,optionArgs)
// --------------------------------------------------------
Keyboard.Input("UiBot",{"iDelayAfter": 300, "iDelayBefore": 200, "sSimulate": "message"})