Q2: The idea behind these two macros is to display a prompt on a SPECIFIC screen
e.g. is this the primary screen? is this your secondary screen?
In the first macro you can vary the screenindex and run the macro
The second macro is there as someone suggested splitting off the prompt into a separate macro.
The two macros load into [Xampl] macro group.
It does not matter if the prompt is the KM default or a Custom HTML.
In some tests, it shows on the wrong screen first time, but the correct screen second time.
I have tried differrnet ways of changing the "focus" to the target screen.
Q1 Usually 1 is the secondary screen as I understand and 0 the main screen.
Q2 Look at this macro below, you can set the mouse location to switch focus to an other screen and then prompts after that should appear on the screen the focus is on.
The SCREEN index can be referenced by either a number OR a name . The Index number can be 0 for the main screen, and then 1 through n are the screens in orientation order from left to right (and top down for screens at the same position).
So what is your actual question?
The Prompt for User Input action will display on the Active, Front Most Screen. So if you want it to display elsewhere, then you need to first click on a window in the Screen where you want the prompt to appear.
OR, you can use this Sub-Macro, called ASYNCHRONOUSLY, with the Target Screen# as its Parameter, just before the Prompt for User Input:
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.