Minimize All problem... 
Author Message
 Minimize All problem...

Hi, I am very new to VBScript, and am trying to write a simple script which
will have the same effect as Winkey+M, and shift+winkey+M.... As follows:

Set Shell = WScript.CreateObject ("Shell.Application")
Shell.MinimizeAll
Shell.UndoMinimizeAll

However, I am wanting it to have the same toggle effect as the winkey+D
does.  The reason I dont want to use winkey+D is because that minimizes
every single window, including ones that I want to remain stuck to the
desktop (such as DUMeter).  Winkey+M seems to only minimise windows which
have a taskbar button so this is the desired effect.

However, I do not know how to detect if these windows are currently
minimized, and if so to run the undo part of the script instead.  Any help
in this matter would be greatly appreciated.

Thanks

icehot



Fri, 25 Feb 2005 21:04:06 GMT  
 Minimize All problem...
If you're on the right version of Windows and
running from the WSH host, try this:

Set oShellApp= WScript.CreateObject("Shell.Application")
oShellApp.MinimizeAll

Regards,
Joe Earnest


Quote:
> Hi, I am very new to VBscript, and am trying to write a simple script
which
> will have the same effect as Winkey+M, and shift+winkey+M.... As follows:

> Set Shell = WScript.CreateObject ("Shell.Application")
> Shell.MinimizeAll
> Shell.UndoMinimizeAll

> However, I am wanting it to have the same toggle effect as the winkey+D
> does.  The reason I dont want to use winkey+D is because that minimizes
> every single window, including ones that I want to remain stuck to the
> desktop (such as DUMeter).  Winkey+M seems to only minimise windows which
> have a taskbar button so this is the desired effect.

> However, I do not know how to detect if these windows are currently
> minimized, and if so to run the undo part of the script instead.  Any help
> in this matter would be greatly appreciated.

> Thanks

> icehot



Fri, 25 Feb 2005 23:55:08 GMT  
 Minimize All problem...
"iCEhOT"
Look at:
http://www.freevbcode.com/code/HideWindow.zip
--
Fosco


Tue, 01 Mar 2005 13:14:22 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Visability of opened (but minimized) form problem...

2. VB4 - OS/2 Minimize Icon Problem

3. Non-Standard way of minimizing window problem.

4. minimize div problem

5. minimize div problem

6. minimize div problem

7. minimize DIV problem

8. Minimized Browser focus problem

9. Minimize a form when minimizing a child of it

10. Minimize an SDI -Form when minimizing an other...

11. Problem: Access 97 minimizes

12. Minimize to system tray problem

 

 
Powered by phpBB® Forum Software