#N canvas 471 98 569 373 10;
#X obj 2 228 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 2 261 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 2 300 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 136 270 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 205 173 tgl 18 0 empty empty empty 0 -6 0 8 #d0d0d0 #404040 #000000 0 1;
#X obj 205 146 cyclone/active;
#X text 261 309 (none);
#X obj 2 333 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X text 259 236 (none);
#X text 168 272 float -;
#X text 223 271 window status (0 inactive / 1 active);
#X text 230 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 461 197 pd example;
#X obj 205 203 nbx 3 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X text 64 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 1 5 header active;
#X text 22 61 Report window activity;
#X connect 4 0 13 0;
#X connect 5 0 4 0;
