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.

Procedure

The following video explains how to launch and attach windows. You can follow both the video and the written steps.

Note: This video has no narration.

The following steps describe how to launch and attach windows according to the previous video:

  1. 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.
  2. 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.
  3. In the Toolbox pane, search for and double-click the Attach Window command.
    • In the Window input parameter, select the notepad variable.
  4. In the Toolbox pane, search for and double-click the Type Text command.
    • In the Text input parameter, type Hello, World! Welcome to IBM!.

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!”.