Attaching windows
Attach a window to the scope so your bot can manipulate it. In this topic, learn to use the Launch and Attach Window command to launch and attach the Notepad and Paint applications, and the Attach Window command to attach the Notepad window where the script must write a text.
Before you begin
The requirements for attaching windows are:
- Access to IBM RPA Studio application.
- Create a new script.
- Use screen scale at 100% when mapping controls.
Procedure
The following video explains how to launch and attach windows. You can follow both the video and the written steps.
The following steps describe how to launch and attach windows according to the previous video:
- In the Toolbox pane, search for and double-click the Launch and Attach Window command.
- In the Executable input parameter, enter
notepad.exe
. - In the Window output parameter, enter
notepad
.
- In the Executable input parameter, enter
- In the Toolbox pane, search for and double-click the Launch and Attach Window command.
- In the Executable input parameter, enter
mspaint.exe
. - In the Window output parameter, enter
mspaint
.
- In the Executable input parameter, enter
- In the Toolbox pane, search for and double-click the Attach Window command.
- In the Window input parameter, select the
notepad
variable.
- In the Window input parameter, select the
- In the Toolbox pane, search for and double-click the Type Text command.
- In the Text input parameter, type
Hello, World! Welcome to IBM!
.
- In the Text input parameter, type
Results
The script launches and attaches the Notepad application first, and the Paint application later. Then, attach the Notepad window and type “Hello, World! Welcome to IBM!”.