Skip to main content

Input-Text

Command Description

Input text freely

Command Prototype

Keyboard.Input(sText,optionArgs)

Parameter Description

ParameterRequiredTypeDefaultDescription
sTextTruestring""Input content
iDelayAfterNonenumber300Delay time (in milliseconds) after executing the activity is 300 milliseconds
iDelayBeforeNonenumber200The delay time (in milliseconds) before any operations are executed is by default 200 milliseconds
sSimulateNoneenum"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"})