Here's a macro I just created to let you carefully select a window position on the screen and get the frame of that window (position and size) as the result.
It has a similar end result as the following action:
But it allows you to reposition and resize a transparent window on the screen in order to get your result. You may not need this alternate method, but it's worth trying out.
Here's a screenshot of what it looks like when using it...
If anyone wants to write variations of this macro, go ahead.
The last two actions of this macro may be deleted once you've tested it out.
I had to use a couple of interesting techniques in this macro which I'm proud of. I confess, I did get some help from ChatGPT, but I assure you that I understand the majority of this macro.
==================================================
Create & Get Window Frame Coordinates Macro (v11.0.4)
Interesting…. Could we use that method to then reposition a window back to the coordinates you got in the first place? Like, I I'm thinking about replacing apps like Display Maid or any other similar window management apps, which can save a window position and restores it whenever we open a specific app. See what I mean?
That idea never occurred to me. I like that idea. I'm sure it's just a simple modification. I'll get to it after breakfast.
This macro returns the last location of the window. All I need to do is record that value into a variable and then tell the Custom HTML action to position there when it is created.