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