I've tried all these and I still can't get it to work.
This is what the AutoIt Window says
Is my code, ConsoleWrite never happens until I manually click the close button
I make a mistake/error in my example (post #31)
There should be:
ControlClick("[CLASS:#32770]", "Someone clicked the document!", "[CLASS:Button; INSTANCE:1]")
But even that fix is not able to properly close the window.
Yesterday @Chimp @Jos an me discused here:
and here is working solution for HOW TO CLICK IN JAVA ALLERT WINDOW