I have a Script UI dialog box that is displayed within my script asking for user input on what to do next (two buttons).
However, because it is part of a batch script I'd like the script to automatically click a default buton after a predetermined amount of time so that the script doesn't hang up waiting for user input.
I'm good with creating the timer, but I haven't figured out how to make it run while the dialog is still displayed. It seems like I can get it to start timing either BEFORE the dialog is displayed or AFTER the dialog is closed, but not WHILE it is displayed.
Edit: is there an onLoad that I could add to the window element?