Control dual color bar
dual-color-bar.controlCapture 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 color
inner-rangeColor range RGB or HSV range for the narrow pointer.
RequiredDefault:NoneValue format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}- Target color
outer-rangeColor range RGB or HSV range for the wide target bar.
RequiredDefault:NoneValue format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}- Capture region
regionRegion 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 width
inner-minimum-widthInteger Minimum valid pointer cluster width in pixels.
Default availableDefault:2- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Maximum pointer width
inner-maximum-widthInteger Maximum valid pointer cluster width; 0 selects automatically.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Minimum target width
outer-minimum-widthInteger Minimum valid target cluster width; 0 selects automatically.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Band height ratio
band-height-ratioNumber Target scan band height relative to the capture region.
Default availableDefault:0.3- Pointer height ratio
band-inner-height-ratioNumber Scan band height relative to the pointer height.
Default availableDefault:0.85- Pointer confidence weight
inner-confidence-weightNumber Pointer detection contribution to total confidence.
Default availableDefault:0.42- Target confidence weight
outer-confidence-weightNumber Target detection contribution to total confidence.
Default availableDefault:0.58- Width tolerance ratio
tolerance-ratioNumber Target width multiplier used for the direction dead zone.
Default availableDefault:0.08- Minimum tolerance
minimum-toleranceNumber Minimum direction dead zone in pixels.
Default availableDefault:2- Left keys
left-keysSingle key code Keys sent when the pointer is to the right of the target.
Default availableDefault:["A"]- Right keys
right-keysSingle key code Keys sent when the pointer is to the left of the target.
Default availableDefault:["D"]- Key duration
hold-durationDuration (milliseconds) · ms Milliseconds to hold each directional key press.
Default availableDefault:35- Minimum: 0
- Maximum: 86400000
Value format examples
1000- Neutral interval
neutral-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 period
cycle-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 frames
maximum-iterationsInteger Maximum number of frames processed by this invocation.
Default availableDefault:267- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Activation keys
activation-keysSingle key code Keys sent before detection and retried while the bar has not appeared.
Default availableDefault:[]- Activation key duration
activation-hold-durationDuration (milliseconds) · ms Milliseconds to hold each activation key press.
Default availableDefault:60- Minimum: 0
- Maximum: 86400000
Value format examples
1000- Appearance poll interval
appearance-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 interval
activation-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 timeout
appearance-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 slot
slotText 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 processed
framesInteger Frames processed by this invocation.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Left actions
left-actionsInteger Number of left key actions sent.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Right actions
right-actionsInteger Number of right key actions sent.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Neutral actions
neutral-actionsInteger Number of frames inside the direction dead zone.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Activation actions
activation-actionsInteger Number of activation key actions sent.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Control and error ports
- Input
inInput · Control - An incoming control signal enters this operation.
- Completed
completedOutput · Control - Continue from this result or stage; see the node description for branch conditions.
- Failed
failedOutput · Error - Emitted when the operation fails; connect error handling here.
Version and node identity
Version 1.0.0
sha256:f82e5091e1c122841e06f04fe7898aaf3650b4461961892bd55c222c7aafcaa1