Centering a window, but just a *bit* higher

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?

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.

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.

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.

1 Like

Use something like this:

2 Likes

This is great, thanks! I found that SCREENVISIBLE(Main,Top,17%) is perfect. :+1:

1 Like