TIPS - Focus text field and send keys

Summary

Focus text field and send keys

Body

Let’s say you want to do a loop to type a value into an application (for example, like the picture below) followed by a tab to move to the next field. The “populate text field” action does not allow you to add shortcut keys. Instead, you can do so by using “send keys” action.

Graphical user interface, application Description automatically generated

In the “Send keys” dialogue box, choose “misc”, then “tab” from the “insert special keys” drop down menu. Set the delay between keystrokes as 50.

In the flow, add an additional step – the “Focus on text field in window” action.

In the “Focus on text field in window” dialogue box, click the “text field” tab. Under the UI elements drop down menu, choose “Edit: ‘Other’”

The flow will then open the “Other” tab, focus on the “Generic 1” test field, and type “Test”, followed by the Tab key into the active window.

To make it loop, add a “Loop” action between the “Focus on text field in window” and “Send keys” actions in the flow. In the “Loop” dialogue box, set the “Start from” as 1, the “End to” as 10, and increment as 1. The flow should look like the second image below.

Running the flow, will focus the text field to “Other” and fill all the fields with “Test”.

Details

Details

Article ID: 9114
Created
Tue 11/7/23 11:45 AM
Modified
Tue 11/7/23 11:45 AM