Skip to main content

Send keys

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

Send keys action sends text or key combinations to the active window. This command enables you to automate keyboard input, including regular text and special key combinations, to interact with applications or forms.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Text to send

Specify the text or key combinations to send. To simulate a key press, wrap the key name in braces. For example: {Enter}. To simulate combined keys, use braces for each key, like {Control}{A} for Ctrl + A.

Any text or key combination

Yes

Use the Shortcuts button to access common key combinations

Advanced settings

Parameter

Description

Possible Values

Required

Options / Notes

Delay between keys (ms)

Set the time delay between each key press (in milliseconds)

Integer value

No

Default: 50 ms

Wait after execution (s)

Wait for a specified number of seconds after the action is executed

Integer or decimal value

No

Default: 1 second

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the Text to send field by clicking the {x} button to insert a previously defined variable. This allows you to dynamically send text based on values collected during workflow execution.


Notes

  • Ensure the target window is active before using this command; otherwise, the keys will be sent to whichever window currently has focus.

  • For special key combinations, use the proper syntax with braces, such as {Tab}, {Enter}, {Escape}, etc.

  • You can use the Start recording button to capture actual keystrokes rather than typing them manually.

  • Increasing the delay between keys may be necessary when working with applications that have slower response times.

  • When sending complex key combinations to applications, ensure the application supports those combinations.

Did this answer your question?