active Reference

Send 1 when patcher window is active, 0 when inactive

active

Description

active 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 key object can be turned off when the window is made inactive.

Examples

Turn on a process or open a gate when the window is made active

Arguments

None.

Attributes

Common Box Attributes

Messages

int

Arguments

internal-messaging [int]
There are no inlets. Output is triggered automatically when the patcher window is activated or deactivated.

Output

int

When the patcher window that contains active is activated, active sends out 1. When the window is made inactive, active sends out 0.

See Also

Name Description
Sharing Max Patchers Sharing Max Patchers
closebang
loadbang
loadmess
savebang