Actions57
- 1. Manager Actions
- 2. Mouse Actions
- 3. Keyboard Actions
- 4. Browser Control Actions
- 5. Element Actions
- 6. Image Actions
- 7. Others Actions
- 8. Email Actions
- 9. Developer Actions
- 10. General Debug Actions
2. Mouse → mouse_click_and_hold
AI-generatedSummary
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}}. Use127001for 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, orright. - 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.
