I know that is is possible to Position a User Prompt Window that has been called by another Macro (by referencing "the front window" in the App, "Keyboard Maestro Engine"). But the same approach will not Close that same Prompt Window.
Here is an example to show what I mean:
EXAMPLE Close Prompt Macros.kmmacros (5.1 KB)
If the Macro "EXAMPLE Close Keyboard Maestro Prompt" is run, it calls the Sub Macro "SUB MACRO Prompt" then it is supposed to Centre that Prompt (which works) and then Close that Prompt (which doesn't work). Any ideas folks? Thanks as always!
Strangely, this does work if the "called" window is an Alert Window or a Display Text in a Window. It just will not close any Prompt for User Input Window.
And, it can Minimise the Prompt Window. Just the Close command doesn't work for User Prompt Windows.