#N canvas 441 67 565 429 10;
#X obj 3 298 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 3 331 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 3 370 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 137 340 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 206 173 tgl 18 0 empty empty empty 0 -6 0 8 #d0d0d0 #404040 #000000 0 1;
#X obj 206 146 cyclone/active;
#X text 262 379 (none);
#X obj 3 403 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X text 260 306 (none);
#X text 169 342 float -;
#X text 224 341 window status (0 inactive / 1 active);
#X text 231 175 status;
#N canvas 727 113 433 415 example 0;
#X obj 88 104 cyclone/active;
#X obj 88 166 cyclone/gate;
#X obj 157 134 key;
#X obj 88 188 print key;
#X obj 103 313 select 1 0;
#X msg 103 341 I am now active;
#X msg 212 341 I am now inactive;
#X obj 265 129 cyclone/active;
#X obj 232 154 spigot;
#X obj 222 126 ctlin;
#X obj 232 183 print ctlin;
#X obj 103 283 cyclone/active;
#X text 37 27 This is useful to change the user interface of your window like filtering out messages from the [key] or [ctlin] object when the window is inactive. See below.;
#X text 40 231 This subopatch window also prints a message saying if it is active or not.;
#X obj 103 370 print subpatch;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 4 0 5 0;
#X connect 4 1 6 0;
#X connect 5 0 14 0;
#X connect 6 0 14 0;
#X connect 7 0 8 1;
#X connect 8 0 10 0;
#X connect 9 0 8 0;
#X connect 11 0 4 0;
#X restore 355 171 pd example;
#X obj 206 203 nbx 3 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X text 65 87 [active] outputs 1 when a patch canvas becomes active (its title bar is highlighted and it's the front-most window) \, and outputs 0 when inactive. See examples below.;
#X obj 2 5 header active;
#X text 23 61 Report window activity;
#X text 56 258 see also:;
#X text 123 253 Plugdata users or those with ELSE can also use [else/canvas.active] as an alternative, f 42;
#X text 416 228 click:;
#X obj 414 269 open-else;
#X msg 414 248 canvas.active;
#X connect 4 0 13 0;
#X connect 5 0 4 0;
#X connect 21 0 20 0;
