I am just delving into BTT, and I want to have a keyboard hotkey combination that moves the frontmost window to the center of the screen that it is currently on. The idea was to have the window take up 80% of both height and width and be located centered on the screen, which if my math is correct, should mean that the top left corner should be inset by 10% of the screen’s height/width. That seems right to me, but maybe arithmetic is not my strong suit!
Here is a screen shot of the setup in BTT for custom window placement:
@jec0047 Unfortunately, that did not work. I don’t understand why, but I suspect it relates to BTT moving the window (eg setting the center of the window to the center of the screen) before resizing it, which then puts the window in the wrong place once it is resized. Not sure of that.
@zkarj You solution worked. I had assumed that BTT used the upper left hand corner of the screen as (0,0) with the x coordinate increasing as you go left to right and y increasing top to bottom, but apparently not so.
Yeah, my initial suspicions were that the origin was perhaps not obvious, but I did not consider negative coordinates until I saw that message.
In school, we learn that positive Y goes up, which this does match, but in all the computer systems I’ve used over the years, the graphics origin can either be at the top or the bottom and usually if at the top, then positive Y goes down. I guess the Mac is different.