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

screensize Reference

Output the monitor size

screensize

Description

Reports the resolution to which the computer's monitor is currently set.

Examples

screensize reports the coordinates of the main and total screen areas

Discussion

Note: The 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.

Attributes

Common Box Attributes

Messages

bang

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

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.

See Also

Name Description
gestalt
jit.displays
menubar
thispatcher
zmap
Max Basic Tutorial 13: Movie Sequencing Max Basic Tutorial 13: Movie Sequencing