Capture

The Capture component is used to capture the whole screen of desktop or a window.

Screenshot

Ports

The Capture component exposes the Control In, Control Out and Data Out ports by default.

Port Description
ControlIn Must be connected to the Control Out port of one or more components.
ControlOut Can be connected to the Control In port of another component or the default end component.
Data In Allows the selection of the capture mode "Windows" or "Screen" by default.
Data Out Returns the aligned image(bitmap).

Properties

To edit the properties of the Capture component, in the Properties window, change the required property. Users can edit the following properties.

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the action is performed.
Delay Before Execution Specifies the wait time (in seconds) before the action is performed.
Enable Timeout Allows users to enable timeout for the component
Timeout Allows users to define a timeout for the component

Example

Let us consider an example

Screenshot

To Capture: -

  1. In the toolbox, expand Utilities and then expand Screenshot.
  2. Drag the Capture component and drop it on the Design surface.
  3. Double Click on Capture Component Window Mode and Change the Mode.

    Modes

    Window:- Users can select window mode to capture only studio window or the current active window on the screen.

    Screen: - Users can select Screen mode to captures whole desktop screen.
    Here we will select Window mode.

  4. To save the Capture Image:

    • Drag the Save Component and drop it on the design surface.

    • Double -click the filepath box and enter the required path, including the file name and type.

  5. Connect the control ports and data ports in the activity.

  6. In the toolbar, click Run.

    Screenshot