So I just stumbled across the "Execute JavaScript in Custom Prompt" action. Very cool.
Here's how I'm using it, then I have a question:
I have a Custom HTML Prompt that I launch with a hotkey. If the prompt is already open, I close the prompt then do something else. Here's my action that closes the prompt.
(The function "cancelWindow" is a JS function of mine, in the Custom HTML Prompt.)
The action does just what it's supposed to do. The problem is, it always reports "Timed Out". Obviously I can turn off the timeout notification, and I have.
Not sure how to do this, or I'd do it myself. The one question I had to do a minor amount of digging to find, was what was meant by "windowid" in the statement:
The JavaScript is executed in a specific Custom HTML Prompt action with a matching windowid, or all Custom HTML Prompts if no windowid is specified.
It times out because the window closes so the action never gets its results back. You have configured the action for “ignore results”, but that still waits for the results to return, which they never do. If you want it to not wait, configure it for “asynchronous”.