Browse the docs

screenResolutions

Returns a screen's size as `widthxheight` text; the same as screenResolution.

Keyboard Maestro: ScreenResolutions

Details #

screenResolutions(which?) takes zero or one argument and behaves exactly like screenResolution: it returns the one screen's width and height in whole points as 1512x982 text. It exists so imported Keyboard Maestro %ScreenResolutions% tokens keep working; it does not list every screen.

Parameters #

Takes 0 to 1 argument. {{ screenResolutions(text?) }}

Examples #

screenResolutions()
→
screenResolutions("main")
→

Gotchas #

  • It returns a single screen, not a list of all of them. Combine screenCount() with a screen number to cover each one.

  • A screen that doesn't exist gives empty text, not an error.