The ActionSet component lets an automation interact with Windows applications (such as web browsers) and with Citrix applications. Using this single component in RPA Desktop Design Studio, you can click, drag, read and set text, interact with tables, and more, combining several user actions into a single task.
始める前に
Role required: none
このタスクについて
Using the ActionSet component, you can simulate a user interaction in an automation by specifying multiple user actions.
You can configure the properties for the ActionSet component settings. For more information about these properties, see Properties of Actions (UI) components.
Using the controls in the window, you capture an area of an application window, set one or more anchors, and define the user interactions that you want to simulate in that window. An anchor helps specify the target area for the
interaction by defining a static area from which actions can be defined at a relative distance. For more information about anchors, see Anchor.図 : 1. The ActionSet Settings Window
注:
The ActionSet component is compatible with the Internet Explorer browser, Windows, and Citrix applications.
手順
In the Toolbox pane, navigate to Actions (UI) > ActionSet.
Drag the ActionSet component to the Design surface.
Click the component settings icon (), or, double-click the header of the component.
The ACTIONSET SETTINGS window appears.
Do the following actions:
Capture the area of the external application’s window that you want the automation to interact with. For example, capture the area surrounding a button or a text field in a web browser.
Click Capture Image.
The Press "CTRL+SHIFT" for
selection message appears.
Switch to the external application.
Press the Ctrl + Shift keys at the same time, then release them.
The mouse device turns into a crossover icon ().
Drag the mouse device over the element on which you want the ActionSet
component to perform an action and its surrounding area and
release.
For example, if you want the component to click a button, drag the
mouse device to capture the button and its surrounding areas.
The selected area is captured as an image in the ACTIONSET SETTINGS window.
All ActionSet actions take place in the selected window. To run actions in more than one window, use more than one ActionSet
component in your workflow.
To add one or more anchors, follow these steps:
Return to RPA Desktop Design Studio and in the ACTIONSET SETTINGS window, click ADD ANCHOR.
The anchor appears as a yellow rectangle with red borders.
If necessary, move the anchor to a part of the captured image that will not change.
For example, move the anchor to a title or field label.
If the area under the anchor does not exactly match the corresponding area of the captured image, the anchor will not be recognized, and the ActionSet
component will not work as intended. Choose a static area of the image to set your anchor.
You can define more than one anchor. Multiple anchors let you define the geographical relationship between anchor and
target with greater accuracy when targeting different locations in the image.
Right-click the anchor and select an action to perform in the contextual menu.
To do the actions that the ActionSet component can perform, see the following steps in the appropriate topic to configure the action:
オプション: To delete the anchor, right-click the anchor and click
Delete.
オプション: Connect the data and control ports of the ActionSet component to the
corresponding ports of the other components as described in the following
table.
The ActionSet component has one optional parameter, which you can use to specify the handle of the window where the action takes place. A window handle may identify a specific window more quickly than is possible using
image matching. You can also specify match rules to help the automation find the target window by testing available windows against the rules you specify.
To specify the window handle, connect the Window Handle Data Out port of another component (such as the Start App component) to the Window Handle Data In port of the ActionSet component. For more information about the
Window Handle parameter, see the following table.
Port type
Port name
Data type
Purpose of connection
Notes
Data In
Window Handle
Integer
The numeric handle of the window where the action will be performed. This must be the window from which the image in the ACTIONSET SETTINGS window was captured.
You must provide the handle of the window from which you have captured the image of the screen.