Skip to content

Cycle Similar Elements (win)

Function Description

TIP

Sequentially cycle through each item in the similar elements list of the desktop software window for automation operations.

Cycle Similar Elements (win)

Configuration Item Description

General

Command Input

  • Window ObjectTWinObj: Enter a captured window object.

  • Operation TargetTTarget: Select the window element that needs to be operated on.

  • Element OperationInteger: Operate on element information.

  • Attribute Namestring: Element attribute name.

  • Output Loop Item PositionBoolean: Whether to output the position of the loop item.

Command Output

  • Save Current Loop Item ToTUiElement: Specify a variable name to store current loop item information.

  • Save Current Loop Position ToInteger: Save the count of obtained similar elements.

Advanced

  • Loop Start PositionInteger: Loop start position, 0 is the first item.

  • Loop End PositionInteger: Loop end position, -1 is the last item.

  • Wait for Element to Exist (ms)Integer: Timeout time for waiting for the target associated 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