The Enter Text activity adds a text to the selected interface element. For example, you can use it to enter any text (login, password, classification names, dates etc.) into the selected field. Or you can insert context variable values into the selected screen form. If the element is not selected immediately after opening a window, click on it oк use the Tab key to switch to the required element.
начало внимание
The activity cannot be used if the process does not contain at least one context variable.
конец внимание
Activity settings
Activity settings are configured automatically when recording a process.
For example, let's change the font size in the Notepad application.
- Open Notepad in recording mode, go to font settings, and click the size field.
- Call the radial menu by pressing the Ctrl+Alt+Q combination, which is set by default. You can change this combination in the designer settings.
- Click the
icon and select the Font size variable. You can select it from the list or add a new one by clicking Create parameter.
After saving the process, the Enter Text activity will be added to the process diagram.
You can change the configured settings if you need. To open the settings window, click on the activity on the process diagram.
Parameters Tab
The Parameters tab displays the basic activity parameters:
- Name. The activity name on the process diagram. Its name is set by default when adding the activity. You can change the name in this field;
- Value. Template for entering text in the selected interface element. The template can contain text and values of process context variables. Click the
button and select a variable. The added variables are displayed as {$variable name}. You can fill in the field manually, following the same format. Read more about the process context variables in the "Process context" article.
You can apply strings and types formatting to the variables. Every variable will be displayed according to the specified format. Read more about formatting at the Microsoft official site.
Examples of variable formatting
1. Right alignment to 15 characters {$string,15} 2. Replace 0 with the number (if any). Otherwise, the result string will display 0. (13 — 00013) {$integer,5:00000} 3. Date and time format (10.02.20 5:05:00 +03:00) {$datetime:MM/dd/yy H:mm:ss zzz} For example, it is required to display the value of the Date of birth variable which belongs to the Date/Time type. To do this, select the variable in the Value field. Depending on the set format, its value can be displayed differently: o MMMM dd, yyyy (dddd) — March 16, 2004 (Tuesday); o MM-dd-yy — 03-16-04; o MM-dd-yyyy HH:mm:ss — 03-16-2004 18:31:23. The template for the variable value display can look like this: {$birth_date:MM-dd-yy} 4. Adding the variable to 20 {$integer + 20} 5. Extracting the file name from the path {$file.Name} 6. It is required to display the value of the Salary variable which belongs to the Double type. To do this, select the variable in the Value field. Depending on the set format, its value can be displayed differently: o C — $167.45; o F4 — 167.4500.
|
Conditions Tab
Read more about the Conditions tab in the "Basic activity settings principles" article.
Let's display the previously created text using the Notepad program. The values of the added context variables will be displayed according to the template specified in the Value field.
Found a typo? Highlight the text, press ctrl + enter and notify us