XMAX

n = XMAX

Returns the screen width in pixels.

See YMAX for screen height.

Example

print "This window has " + XMAX + "x" + YMAX + " pixels"
' Output: This window has 640x480 pixels