Centering a window, but just a *bit* higher

windows

#1

Hello, I love that Keyboard Maestro includes window management, but I have one behavior that I find mildly frustrating. When I hit my keyboard shortcut to center a window, KM always puts the window too low vertically, and I have to mouse over to raise it up a bit. What I'd like is to have the window centered between the top of my Dock and the bottom of my Menu Bar.

I'm sure there's a way to do this, can anyone here point me in the right direction?


#2

I am not an expert but I have been tinkering around with the macro on positioning my windows on 3 panes in my ultrawide screen. I am using this command: SCREENVISIBLE().

image

or

image

I think you probably need to adjust SCREENVISIBLE(Main,Top,5%) maybe.
Let me know if that works.


#3

Thanks! That gets me most of the way there. I've got the right height, now just trying to get the window centered horizontally again.


#4

Actually, it looks like the easiest thing to do is just keep the KM "center" macro and add another right below it to move the window up 20 pixels.


#5

Use something like this: