Move "Prompt for User Input" to Current Mouse Location

Hi - is it possible to move a "Prompt for User Input" dialog to the current mouse location? Thanks for any and all tips!

1 Like

You can set its position by using the Set Next Engine Window Position action. Consult the KM wiki here action:Set Next Engine Window Position [Keyboard Maestro Wiki]

3 Likes

Yes, as @tiffle says, you can use the Set Next Engine Window Position action. And center at MOUSEX() MOUSEY()

EXAMPLE Prompt Window at Mouse Location.kmmacros (2.7 KB)

But... Prompt windows "remember" last position so, the next Prompt that appears (even in a different Macro) will also be initially positioned at this spot (or at wherever you have dragged the Prompt window to).

If that is a problem, you can use the same Action in front of other User Prompts to force them to open where you want, for example in the center of screen.

EXAMPLE Prompt Window at Screen Center.kmmacros (2.8 KB)

4 Likes