中文
Node Documentation

Control dual color bar

OtherConfigured target requireddual-color-bar.control

Capture a small region, track a dual color bar, and send left or right keys in one high-frequency node invocation.

Example use

Configure the target region, inner/outer color ranges and left/right keys to keep a narrow pointer near the wide target bar.

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 23

Pointer colorinner-rangeColor range

RGB or HSV range for the narrow pointer.

RequiredDefault: None
Value format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}
{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}
Target colorouter-rangeColor range

RGB or HSV range for the wide target bar.

RequiredDefault: None
Value format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}
{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}
Capture regionregionRegion

Ratio or pixel rectangle captured at the target source.

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}
Minimum pointer widthinner-minimum-widthInteger

Minimum valid pointer cluster width in pixels.

Default availableDefault: 2
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Maximum pointer widthinner-maximum-widthInteger

Maximum valid pointer cluster width; 0 selects automatically.

Default availableDefault: 0
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Minimum target widthouter-minimum-widthInteger

Minimum valid target cluster width; 0 selects automatically.

Default availableDefault: 0
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Band height ratioband-height-ratioNumber

Target scan band height relative to the capture region.

Default availableDefault: 0.3
Pointer height ratioband-inner-height-ratioNumber

Scan band height relative to the pointer height.

Default availableDefault: 0.85
Pointer confidence weightinner-confidence-weightNumber

Pointer detection contribution to total confidence.

Default availableDefault: 0.42
Target confidence weightouter-confidence-weightNumber

Target detection contribution to total confidence.

Default availableDefault: 0.58
Width tolerance ratiotolerance-ratioNumber

Target width multiplier used for the direction dead zone.

Default availableDefault: 0.08
Minimum toleranceminimum-toleranceNumber

Minimum direction dead zone in pixels.

Default availableDefault: 2
Left keysleft-keysSingle key code

Keys sent when the pointer is to the right of the target.

Default availableDefault: ["A"]
Right keysright-keysSingle key code

Keys sent when the pointer is to the left of the target.

Default availableDefault: ["D"]
Key durationhold-durationDuration (milliseconds) · ms

Milliseconds to hold each directional key press.

Default availableDefault: 35
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Neutral intervalneutral-durationDuration (milliseconds) · ms

Milliseconds to wait while the pointer remains in the dead zone.

Default availableDefault: 20
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Minimum frame periodcycle-durationDuration (milliseconds) · ms

Minimum milliseconds from one capture-control cycle start to the next; slow frames receive no extra delay.

Default availableDefault: 80
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Maximum framesmaximum-iterationsInteger

Maximum number of frames processed by this invocation.

Default availableDefault: 267
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Activation keysactivation-keysSingle key code

Keys sent before detection and retried while the bar has not appeared.

Default availableDefault: []
Activation key durationactivation-hold-durationDuration (milliseconds) · ms

Milliseconds to hold each activation key press.

Default availableDefault: 60
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Appearance poll intervalappearance-poll-durationDuration (milliseconds) · ms

Milliseconds between captures while waiting for the bar.

Default availableDefault: 20
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Activation retry intervalactivation-retry-durationDuration (milliseconds) · ms

Milliseconds before retrying activation while the bar is absent.

Default availableDefault: 300
  • Minimum: 0
  • Maximum: 86400000
Value format examples
1000
Appearance timeoutappearance-timeoutDuration (milliseconds) · ms

Maximum milliseconds to wait for the bar; 0 disables waiting.

Default availableDefault: 0
  • 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 5

Frames processedframesInteger

Frames processed by this invocation.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Left actionsleft-actionsInteger

Number of left key actions sent.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Right actionsright-actionsInteger

Number of right key actions sent.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Neutral actionsneutral-actionsInteger

Number of frames inside the direction dead zone.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Activation actionsactivation-actionsInteger

Number of activation key actions sent.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

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.
FailedfailedOutput · Error
Emitted when the operation fails; connect error handling here.
Version and node identity

Version 1.0.0

sha256:f82e5091e1c122841e06f04fe7898aaf3650b4461961892bd55c222c7aafcaa1