Skip to content

Click Element (win)

Function Description

TIP

Click an element in the window, such as a button, link, or any other element

Click Element (win)

Configuration Item Description

General

Command Input

  • Window ObjectTWinObj: The window object obtained

  • Operation TargetTTarget: Select the window element to operate on

Command Output

No output for the current command

Advanced

  • Simulate Human ClickBoolean: Simulate a human-initiated click event

  • Send Window MessagesBoolean: Send window messages for clicking

  • Show Mouse Movement TrailBoolean: Whether to show the mouse movement trail

  • Click MethodInteger: Single-click or double-click

  • Mouse ButtonInteger: Trigger the click of a mouse button

  • Modifier KeysInteger: Keyboard modifier keys that need to be pressed

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

  • Delay After Execution (ms)Integer: Time to continue waiting after the command execution is completed

  • Target Text PositionInteger: Supports clicking the center position of the element (center point of the element's rectangular area), random position (automatically and randomly specifies a point within the rectangular range of the element), custom position (manually specify the target point)

  • CustomInteger: Custom position

  • Horizontal TranslationInteger: Enter a positive number to move right, a negative number to move left

  • Vertical TranslationInteger: Enter a positive number to move down, a negative number to move up

  • Wait for Element Presence (ms)Integer: Timeout for waiting for the element to be present

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