Example of Automatic Recording with Basic and Desktop

Example of Automatic Recording with Basic and Desktop

SUGGEST EDITS

To exemplify how you can use the automatic recording and understand more about the differences between Basic and Desktop, let’s create the same project for the two.

  1. Open Notepad.
  2. In UiPath Studio, create a new sequence.
  3. a. In the Design ribbon tab, in the Wizards group, select Recording > Basic. The Basic Recording toolbar is displayed and the main view is minimized.
  4. b. In the Design ribbon tab, in the Wizards group, select Recording > Desktop. The Desktop Recording toolbar is displayed and the main view is minimized.
  5. In the toolbar, click Record. The automatic recording process starts.
  6. In Notepad, click on the main panel. A pop-up window is displayed.
  1. Type a custom text and press Enter. The string is displayed in Notepad.

Note:

Select the Empty field check box to delete previously existing text. You can also select this option after the recording is finished, in the Properties panel of the Type Into activity.

  1. From the Format menu, select Font. The Font window is displayed.
  2. Select a different font style, such as Bold Italic, and click OK.
  3. Press Esc two times. You exit the recording view and the saved project is displayed in the Designer panel.
  4. Press F5. The automation is executed as expected.

The two screenshots below display part of the resulted projects for the Basic (first screenshot) and Desktop (second screenshot) automatic recordings. As you can see, the second one generates an Attach Window container, while the Basicone does not.

Desktop recorder - The top level window selector from the Attach Window container:

Desktop recorder - The partial selector for the Type Into activity:

Basic recorder – The full selector for the Type Into activity:

You can also customize and parameterize this project after it is recorded. To exemplify this, let’s take the Desktoprecording example and build upon it.

For example, let’s assume that we want to extract the number of an invoice from an Excel file, copy it to a new Notepad application which we close in the end.

  1. Add an Excel Application Scope activity before the recording sequence.
  2. In the WorkbookPath field, type the path of the Excel file you need to extract information from.
  3. Add a Read Cell activity in the Excel Application Scope.
  4. In the Properties panel, add the Sheet Name and Cell information from the Excel file used.
  5. Right-click in the Result field, and click Create Variable. The Set Name field is displayed.
  6. Fill in the name, such as genInvoiceNumber, and press Enter. The variable of type 'GenericValue' is created and displayed in the Result field and Variables panel.
  7. Change the scope of the variable to Main.
  8. In the recording sequence, in the Type Into activity, in the Text field, add the genInvoiceNumber variable. This copies the value stored in the variable to Notepad.
  9. What was added to the project should look as in the following screenshot.

サンプルをダウンロードして見る


OPEN APPLICATION

DO

Recording Sequence

Attach Window ”Untitled Note pad"

DO

Type Into "editable TEXT"

  1. Add an Open Application activity between Excel Application Scope and the Recording sequence.
  2. Use Indicate window on screen to select the active Notepad window.
  3. Place the Recording sequence inside the Open Application activity.
  4. Add a Close Application activity after Open Application.
  5. Use Indicate window on screen again to select the active Notepad window to be closed.
  6. Make sure the OffsetX and OffsetY properties (Cursor Position) are empty.
  7. What was added to the project should look as in the following screenshot.
  1. Press F5. The automation is executed as expected.

Note:

To ensure that the workflow execution ends, close the Save Notepad window.


LISTBOX設定方法

調べる