Looking for help with focus on specific window

There is a thread here (Made dialog to mimic shutdown/restart dialog!) that works incredibly well, with one exception. When the resulting window (if that’s what it actually is) comes up, I haven’t been able to find a way to make the window active. I’ve searched here endlessly, as well as anything to do with moving the cursor to the window, with no luck.

I’ve also investigated something called “clickclick” (I believe that’s what it’s called), but have hesitated with installing, as I’m not sure that will do what’s needed.

Any help, or suggestions would be appreciated. Thanks.

A bit more searching here at MacScripter and I have a solution.

From this thread (Move the cursor to a certain coordinate on the screen. - #8 by monsterhart) in post by “monsterhart” the first part of the solution is in post #8 which starts with “so to make it simpler.”

Then from this thread (simulating mouse clicks macos - #3 by Samuel_Jr) in post #3 by “Budgle” the “tell System Events” script does the actual click.

I may only need the second script once I pinpoint the exact cursor location on my two systems.