Each time a window opens or closes
Watch for a window whose title fits a pattern to open, or to close, and run the nested steps for each; gives the change and the window's title.
Loop type in the Trigger Loop toolkit · id ooa.triggerloop/window_changes · 6 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Title | String | Yes | Window title: text the title contains, a pattern with * and ?, or re: and a regular expression. | |
| Event | String | No | opens | Start the steps when such a window opens, closes, or either. |
| Include existing | Boolean | No | false | Also count windows already open when the loop starts as opening. |
| Poll (seconds) | Number | No | 1 | How often to check, in seconds. |
| Maximum events | Number | No | 0 | Stop after this many events; 0 = no limit. |
| Maximum (seconds) | Number | No | 0 | Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs). |