中文
Node Documentation

Click template

AutomationConfigured target requiredtemplate.click

Check one supplied source image or capture fresh frames, then click the template match center.

Example use

Find a button template in the configured target and click the match center.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 9

Source imageimageImage

Optional; connect Capture Window to skip capture here. A fixed image is checked once.

OptionalDefault: None
Template imagetemplateImage

Durable template image to wait for and click.

RequiredDefault: None
Search regionregionRegion

Region of the captured window to search.

Default availableDefault: {"height":1,"unit":"ratio","width":1,"x":0,"y":0}
Value format examples
{"height":0.5,"unit":"ratio","width":0.5,"x":0.25,"y":0.25}
Match thresholdthresholdNumber

Score from 0 to 1 required before clicking.

Default availableDefault: 0.85
Wait timeouttimeoutDuration (milliseconds) · ms

Maximum wait in milliseconds when no source image is supplied; 0 checks one frame.

Default availableDefault: 5000
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Poll intervalpoll-intervalDuration (milliseconds) · ms

Milliseconds between fresh frame checks.

Default availableDefault: 100
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Settle durationsettle-durationDuration (milliseconds) · ms

Milliseconds to wait and relocate after a live match; must be 0 with a source image.

Default availableDefault: 0
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Pointer buttonbuttonPointer button

Use the left, right, or middle pointer button.

Default availableDefault: "left"
  • Options: "left", "right", "middle"
Hold durationhold-durationDuration (milliseconds) · ms

Milliseconds between button press and release.

Default availableDefault: 50
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000

Configuration 1

Window target slotslotText

Select a target bound to an application path, window title, and window class.

RequiredDefault: None
  • Minimum characters: 1
  • Maximum characters: 128
  • Pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$

Data outputs 4

MatchedmatchedBoolean

Whether the final frame met the threshold before clicking.

Match scorescoreNumber

Final template score before clicking.

Click centercenterPoint

Pixel center converted to the exact-window click position.

Value format examples
{"unit":"ratio","x":0.5,"y":0.5}
{"unit":"px","x":640,"y":360}
Matched boundsboundsRegion

Pixel bounds of the match before clicking.

Value format examples
{"height":0.5,"unit":"ratio","width":0.5,"x":0.25,"y":0.25}

Control and error ports

InputinInput · Control
An incoming control signal enters this operation.
CompletedcompletedOutput · Control
Continue from this result or stage; see the node description for branch conditions.
TimeouttimeoutOutput · Control
Continue from this result or stage; see the node description for branch conditions.
FailedfailedOutput · Error
Emitted when the operation fails; connect error handling here.
Version and node identity

Version 1.2.0

sha256:b029709727b9cf62aa13a655d730d62c70c062c519220cef834040d93d3cd342