Read window state
window.stateRead the configured target window state, foreground flag, position, and size.
Example use
Read foreground status and dimensions to decide whether to activate or resize the window.
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…
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 6
- State
stateString Durable Unicode text.
- Foreground
foregroundBoolean A strict true or false value.
- X
xInteger The horizontal coordinate or position component in the current unit.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Y
yInteger The vertical coordinate or position component in the current unit.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Width
widthInteger The region or window width in this node’s coordinate unit.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Height
heightInteger The region or window height in this node’s coordinate unit.
- 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:9e9e82db04348f1ee6eea4d065ca0356fc84c9445492deb9892a8c6458c4eacf