Recently, I’ve dived into using Keyboard Maestro for setting up computing environments. One of the things I love most about KB vs other solutions (Workflow, Bunch) is how much control there is over window sizes, position, and interaction with windows, particularly in a multi-screen workstation.
The one thing I’m finding very frustrating/annoying is figuring out the pixel locations and sizes of windows in order to embed them in my scripts. Does anyone know of an easy way to, say, position your windows just where you want them and then “grab” the screen position and size in a format that KM can use?
In Keyboard Maestro’s Window menu is an item called “Mouse Display.” Turn that on and it tells you exactly where your mouse is on the screen. It can also tell you how far it is from a corner of the window, or from the corners of the screen.
For anyone else researching this issue, I found two other things which have been helpful. First of all, there are two apps (currently available on Setapp) that assist with screen measurements and locations: PixelSnap and QuickLens.
Secondly, I found this gem in the KeyboardMaestro documentation for Window Tokens.