Maximizing a Minimized Application 
Author Message
 Maximizing a Minimized Application

How would you use WSH to maximize a minimized application that minimizes to
the system tray? I've tried using AppActivate but it only works if an
application is hidden, not minimized. TIA

Keith



Sat, 21 Sep 2002 03:00:00 GMT  
 Maximizing a Minimized Application
Alt-Tab will restore the last minimized(run) app, since it was the last to have the focus before minimizing. AppActivate should work then.

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >  http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> How would you use WSH to maximize a minimized application that minimizes to
> the system tray? I've tried using AppActivate but it only works if an
> application is hidden, not minimized. TIA

> Keith



Sat, 21 Sep 2002 03:00:00 GMT  
 Maximizing a Minimized Application
WshShell.AppActivate to activate the application

WshShell.SendKeys to send Alt, <space> X

'Begin code
'This works on a running, minimized instance of Calculator

Dim WshShell
set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "Calculator"
WScript.Sleep 100
WshShell.SendKeys "%"
WScript.Sleep 500
WshShell.SendKeys Chr(32)
WScript.Sleep 500

'Calculator does not support the X when minimized. Replace R with X for apps that do.
WshShell.SendKeys "R"

--
Regards,
Doug Knox, Microsoft MVPDTS
No support provided by e-mail!  Reply to the newsgroups only!
* Help us help YOU - http://members.home.com/dts-l/goodpost.htm
--
The Microsoft MVP Program does not constitute employment or contractual
obligation with Microsoft Corporation. We do this for fun! :)
--
Visit my web site for Win95/98 Tweaks, Tips and Utilities
http://members.xoom.com/dbknox/registry/index.htm

Quote:

> How would you use WSH to maximize a minimized application that minimizes to
> the system tray? I've tried using AppActivate but it only works if an
> application is hidden, not minimized. TIA

> Keith



Sat, 21 Sep 2002 03:00:00 GMT  
 Maximizing a Minimized Application
Or download WSHExtend.ocx from WSH Bazaar and use the
Window methods to change the Window style.

G. Born

Check out the WSH Bazaar at:

www.borncity.de

KT schrieb in Nachricht ...

Quote:
>How would you use WSH to maximize a minimized application that minimizes to
>the system tray? I've tried using AppActivate but it only works if an
>application is hidden, not minimized. TIA

>Keith



Sun, 22 Sep 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Maximizing a minimized application

2. minimize, maximize script just like on microsoft.com

3. Minimize/Maximize

4. disabling minimize, maximize, restore buttons of an html popup window

5. Stopping another process and minimizing/maximizing/restoring

6. Using VBScript to minimize, restore/maximize, close window

7. Using VBScript to minimize, restore/maximize or close a window

8. Disabled Minimize, Maximize button from a window

9. Maximize, minimize as shell commands

10. maximized minimized close

11. link that can maximize/minimize browser window

12. SendKeys method to a minimized application

 

 
Powered by phpBB® Forum Software