Skip to content

Get Element Info (Win)

Function Description

TIP

Get the text content, attributes, value, and position of a specified element in the window

Configuration Item Description

General

Command Input

  • Window ObjectTWinObj: Enter a captured window object

  • Operation TargetTTarget: Select the desktop software element to operate on

  • OperationInteger: Window Element Information

  • Attribute Namestring: Element Attribute Name

  • Relative ToInteger: Position in the screen

Command Output

  • Save Element Info Tostring: Save the captured window element information

Advanced

  • Convert to 96 DPI Corresponding ValueBoolean: Whether to convert border attributes to device-independent units (each unit is 1/96 inch)

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

  • Wait for Element to Exist (Milliseconds)Integer: Timeout period 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