Browse the docs

screenVisibleFrame

Returns a screen's visible area as `x,y,width,height` text.

Keyboard Maestro: ScreenVisible

Details #

screenVisibleFrame(which?) works like screenFrame (same optional screen argument, same x,y,width,height text in whole points) but gives the visible area: the screen minus the menu bar and the Dock.

Parameters #

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

Examples #

screenVisibleFrame()
→
screenVisibleFrame("main")
→

Gotchas #

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

  • The result is text. Use screenVisible() for one number.