Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Using Shell PopUp in HTA

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,48912
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Using Shell PopUp in HTA - 6/29/2007 7:48:32 AM   
  Fredledingue


Posts: 321
Score: 0
Joined: 5/9/2005
From:
Status: offline
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.


      

_____________________________

Fred
 
 
Revisions: 2 | Post #: 1
 
 RE: Using Shell PopUp in HTA - 7/12/2007 11:25:17 PM   
  robszar


Posts: 173
Score: 0
Joined: 2/27/2005
From:
Status: offline
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?

(in reply to Fredledingue)
 
 
Post #: 2
 
 RE: Using Shell PopUp in HTA - 7/13/2007 6:36:10 AM   
  Fredledingue


Posts: 321
Score: 0
Joined: 5/9/2005
From:
Status: offline
CreateObject ("Shell.Application").UndoMinimizeAll

other methods are:

.CascadeWindows
.TileHorizontally
.TileVertically

Unfortunately there is no "MaximizeAll" :(

_____________________________

Fred

(in reply to robszar)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Using Shell PopUp in HTA Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts