Take Screenshot

Takes a screenshot of a windows element and returns the png file with that screenshot.

Take Screenshot Properties

Designer Properties#

  1. Path to element Points to the location of the application window on the desktop containing the element required. It is used to find the element to extract the text from.
  2. Element details Contains the details to find the element. This may be the automation id, class name, name.
  3. Out File The path to the generated screenshot file.
  4. Stop recording manually Controls how the recording is stopped. When checked, the recording will be stopped only when the 'Stop recording' button is pressed, otherwise the recording is stopped with the following combination CONTROL followed by left/right ClickPath to element and Element details will be set to the last element that was clicked(left or right).
  5. Select Element Starts the recording of a target element on a desktop application which will receive the click event. The element can be selected using CONTROL followed by left/right Click. If we use this option, Path to element and Element details will be set to the last element clicked while CONTROL key was down, and the recording will be stopped, otherwise Path to element and Element details will be set to the last element clicked(left/right) after either STOP button was pressed, or the STOP hot key was used(ESC by default).

Properties#

Take Screenshot Properties

Filter Properties#

  1. Absolute X cursor position See Filter Properties.
  2. Absolute Y cursor position See Filter Properties.
  3. Can Start Process If Not Found See Filter Properties.
  4. CV Threshold See Filter Properties.
  5. Element details See Designer Properties above.
  6. Element Index See Designer Properties above.
  7. Path to element See Designer Properties above.
  8. Stop Id preprocessing See Filter Properties.
  9. Use CV See Filter Properties.
  10. Use Relative position See Filter Properties.

General Properties#

See General Properties.

Misc#

See Misc.

Out Error#

See Out Error.

Output#

  1. Out file path The path of the generated file containing the screenshot.

Parent Window Properties#

See Parent Window Properties.

Example#

Automating Rinkt Robot installation

In this sample, the activity will automate the Rinkt Robot installer by clicking on the ‘Next’ button using the Mouse activity, then wait until the ‘Finish’ button becomes available and enabled, before we finialise the installation by clicking on the ‘Finish’ button.

note

Please ensure that you change the File Path to a valid path on your desktop.

The variable ‘Number of Attempts’ is set to 1 for ‘Get Details’ activity on the ‘Finish’ button. This ensures that the activity checks the enabled state of the ‘Finish’ button only once before retrying.

Properties#

Copy Properties

General Properties#

See General Properties.

Misc#

See Misc.

Out Error#

See Out Error.

Example#

Copy Paste Sample

In this sample, we copy next from one Notepad to another Notepad. This sample copy activity includes some delays to provide the operating system with sufficient time to open the required application window.