• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Trying to make VBS scripts for Minimize and UnMinimize all windows, help!

ZappDogg

Senior member
Well, the hard part is done for the most part. Below are what I'm using as scripts for each function. What I would like is to somehow combine these two into a single toggle button, similar to Show Desktop. Any ideas?

Minimize all windows
Set shell = wscript.CreateObject("Shell.Application")
Shell.MinimizeAll

UnMinimize all windows
dim objShell

set objShell = CreateObject("Shell.Application")
objShell.UndoMinimizeALL
set objShell = nothing
 
Well you'll need to detect what the current state is in order to make a decision to minimize or maximize all. Short of being able to call a method which tells you, you might have to loop through each application window and check their state.
 
I know about the key shortcuts, but I'd like an icon that can toggle the commands, since Show Desktop minimizes Rocketdock, and this method does not.
 
Back
Top