Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TitleStringYesWindow title: text the title contains, a pattern with * and ?, or re: and a regular expression.
EventStringNoopensStart the steps when such a window opens, closes, or either.
Include existingBooleanNofalseAlso count windows already open when the loop starts as opening.
Poll (seconds)NumberNo1How often to check, in seconds.
Maximum eventsNumberNo0Stop after this many events; 0 = no limit.
Maximum (seconds)NumberNo0Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs).