<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="active" module="max" category="System">
	<digest>
		Send 1 when patcher window is active, 0 when inactive
	</digest>
	<description>
		<o>active</o> will output a 1 when the Patcher window becomes active (i.e., it is the front-most window and its title bar is highlighted), and output a 0 when the Patcher window becomes inactive. You can use this to change the user interface of your window. For example, messages from the <o>key</o> object can be turned off when the window is made inactive.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			System
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="internal-messaging" optional="0" type="int" />
			</arglist>
			<digest>
				There are no inlets. Output is triggered automatically when the patcher window is activated or deactivated.
			</digest>
			<description>
				There are no inlets. Output is triggered automatically when the patcher window is activated or deactivated.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="active.png" caption="Turn on a process or open a gate when the window is made active" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="closebang" />
		<seealso name="loadbang" />
		<seealso name="loadmess" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				When the patcher window that contains <o>active</o> is activated, <o>active</o> sends out <m>1</m>. When the window is made inactive, <o>active</o> sends out <m>0</m>.
			</description>
		</entry>
	</misc>
</c74object>
