Click the position in relation to the image

Learn how to develop your script to click the position in the screen in relation to an image. You need to use the Click command to click the position in relation to the image.

Before you begin

This procedure assumes that you applied the recommended settings to work with surface automation.

  • Product requirements
    IBM RPA Studio license

  • User requirements

    • Permission to use IBM RPA Studio application
    • Permission to create or manage a script

Procedure

This procedure teaches you how to click the position on the screen in relation to an image by using the Snipping Tool and Screen Capture Tool.

Click the position through the Snipping Tool

The following video explains how to use the Snipping Tool to click at a position in the screen.

Note: The video has no narration.

The following steps describe how you can snip images and select a position on the screen by using the Snipping Tool according to the previous video.

  1. In IBM RPA Studio, start the recorder.
  2. In the recorder bar, click the Snipping Tool icon.
  3. Drag the cursor around an element to form a rectangle.
  4. Right-click the selected area and select Click > At a point in relation to the image option.
  5. Click the position on the screen where the bot must click. A red point indicates this position.

The Click command window opens filled with the main input parameters based on the image you selected. The following sample image shows that parameters:

The Click command generated when you use the Snipping Tool to snip images.

  • Click on Position: Enabled.
  • Image: The anchor image's asset.
  • Similarity Degree: 100% of similarity degree to reach the image in the screen.
  • Position: The position that the element on the anchor image is in the screen.
  • Selector: Vision.

Click the position through the Screen Capture Tool

The following video explains how to use the Screen Capture Tool to click at a position on the screen.

Note: The video has no narration.

The following steps describe how you can snip images and select a position on the screen by using the Screen Capture Tool according to the previous video.

  1. In IBM RPA Studio, start the recorder.
  2. Press the Print Screen key on the keyboard.
  3. Drag the cursor around an element to form a rectangle.
  4. Click the position on the screen where the bot must click. A red point indicates this position.
  5. Right-click the selected area and select Click at the point in relation to the image option.

The Click command window opens filled with the main input parameters based on the image you selected. The following sample image shows that parameters:

The Click command generated when you use the Screen Capture Tool to snip images.

  • In Relation to the Screen: Enabled.
  • Click on Position: Enabled.
  • Image: The anchor image's asset.
  • Similarity Degree: 100% of similarity degree to reach the image in the screen.
  • Position: The position that the element on the anchor image is in the screen.
  • Selector: Vision.
  • Timeout: The time to click the anchor image in the screen.