Skip to content

Element Screenshot (Win)

Function Description

TIP

Take a screenshot of an element in the desktop software and save it to a specified file

Configuration Item Description

General

Command Input

  • Window objectTWinObj: Enter a captured window object

  • Operation targetTTarget: Select the window element

  • Save image to clipboardBoolean: Save image to clipboard

  • Save folderstring: The folder where the screenshot will be saved

  • Use automatic random file nameBoolean: Automatically generate a unique file name

  • Custom file namestring: Custom file name

Command Output

  • Screenshot save locationstring: Specify a variable to save the screenshot location

Advanced

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

  • Wait for element to exist (milliseconds)Integer: Timeout for waiting for the target element to exist

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None