All Forums >> [Scripting] >> Post a VBScript >> Using Shell PopUp in HTA Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
The "-1" case, when there is no answer after a certain time will not be triggered in an HTA unless you close or minimize the window. If you don't minimize the window it will wait forever. Solution? Put CreateObject ("Shell.Application").MinimizeAll one line before the popup. It will minimize all windows and the hta interface will be minimized too, but at least in absence of answer the script will continue.
This is good, just want I'm looking for BUT, my POPUP asks if you want to reboot, if all windows are minimized and you click "no" I want to maximize the hta back up. any idea on how to restore the window?