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

screensize

Output the monitor size

Description

screensize reports the resolution to which the computer's monitor is currently set.
Note: The Max 5 screensize object on Windows now behaves as it does on the Macintosh - it outputs the screen's size rather than its bounding coordinates. While this may cause off-by-one errors in patches that use the screensize object on Windows, fixing them will guarantee cross-platform compatibility for your patches.

Arguments

None.

Messages

bang Triggers the output of the main screen size and total multi-monitor screen bounding rectangle out the outlets.

Information for box attributes common to all objects

Output

list: Out left outlet: The bounding coordinates of the main screen: left is first, followed by top, right, and bottom.

Out right outlet: The bounding coordinates of all monitors. If there is only one monitor, the output will be the same as with the left outlet.

Examples

screensize reports the coordinates of the main and total screen areas

See Also

Name Description
gestalt Inquire about the current system
menubar Put up a custom menu bar
thispatcher Send messages to a patcher
zmap Maps input range of values to output range
Max Basic Tutorial 13: Movie Sequencing Max Basic Tutorial 13: Movie Sequencing