A newer version of Max is available. Click here to access the latest version of this document.

loadbang

Send a bang automatically when a patcher is loaded

Description

loadbang output is triggered automatically when the file is opened, or when the patch is part of another file that is opened.

Arguments

None.

Messages

bang Sending a bang message to a loadbang object causes it to output a bang message.
(mouse) Double-clicking on a loadbang object causes it to output a bang message.
loadbang Same as bang.

Information for box attributes common to all objects

Output

bang: Sent automatically when the patch is loaded. You can also cause loadbang to send out a bang by double-clicking on it in a locked patcher, or by sending a loadbang message to a thispatcher object in the same patcher. Holding down the Shift and Command keys on Macintosh or Shift and Control keys on Windows while a patch is loading prevents loadbang objects in that patch from sending any output.

Examples

Set initial values when a patch is loaded... or start a process automatically

See Also

Name Description
active Send 1 when patcher window is active, 0 when inactive
button Flash on any message, send a bang
closebang Send a bang when patcher window is closed
freebang Send a bang when patcher is freed
loadmess Send a message when a patch is loaded
thispatcher Send messages to a patcher
Max Basic Tutorial 13: Movie Sequencing Max Basic Tutorial 13: Movie Sequencing