GREAT LOTUS PYAUTO WEB icon

GREAT LOTUS PYAUTO WEB

10 action groups: ManagerAction, MouseAction, KeyboardAction, BrowserControl, ElementAction, ImageAction, OthersAction, EmailAction, DeveloperAction, General Debug

2. Mouse → mouse_click_and_hold

AI-generated

Summary

Publishes an MQTT request that tells the routed PyAutoGUI session to press and hold a mouse button. The button remains held after the operation; call Mouse Release afterward to finish a drag or text selection.

Inputs

  • Topic (required) — MQTT topic to publish the request to.
  • QoS — MQTT delivery level: 0, 1, or 2; defaults to 1.
  • Include Input Items — When enabled, attaches upstream item data under payload.inputItems; optionally select fields to include.
  • Wait For Response — When enabled, waits for the MQTT response before returning; defaults to false. Response Timeout (sec), default 60, applies when waiting.
  • Delay Next Step (ms) — Delay before continuing. Defaults to rand(200,1000); runs after the response if waiting, or after publishing otherwise.
  • Remote Port (required) — CDP port used to route the command to the intended worker session; defaults to {{$json.remote_port}}. Use 127001 for a local session.
  • X — Screen horizontal pixel coordinate. May be omitted when using XPath.
  • Y — Screen vertical pixel coordinate. May be omitted when using XPath.
  • XPath — XPath for locating the target element; may be omitted when using coordinates.
  • Button — Mouse button to hold: left (default), middle, or right.
  • Central Click — Whether to target the element's center; defaults to false, which selects a point in its safe area.

Output shape

A single result item containing the MQTT response when waiting is enabled, or the publish result when it is disabled.

Upstream input items are included only when Include Input Items is enabled. The mouse button remains held until a subsequent Mouse Release operation.

Links

Discussion