Minimize to desktop | vbs-File?
Thursday, January 22, 2009 by JoshWinter | Discussion: ObjectDock
Hello,
my question is not directly about objectdock, but I still think it would fit well...
I am using samurize together with ObjectDock and when I click the button to enter the desktop, it hides my Samurize. This is a "bug" in Samurize which I can't fix yet...
so now I thought I could somehow trick that button that when it goes to the desktop it opens (maximizes/puts in front) samurize again...
I've seen the script to manually open the start menu so i guess there are lots of people here who know how to do that.
Anybody of you got an idea how I could solve that?
greetings,
Josh
Reply #2 Friday, January 23, 2009 10:24 AM
well thanks for the tip... works fine,
but if i where to use that I wouldn't, thanks to launchy and other hotkeys, need a taskbar at all...
can you show me how to implement these two hotkeys in a script? Which basically imitates that I am clicking Win+M?
Because when I for example am just using the mouse for some reason (only one hand free or whatever), the hotkey isnt always a good solution...
Josh
Reply #3 Friday, January 23, 2009 11:02 AM
You cannot implement winkey though script as a secondary command. You can only use Winkey in script to call the start panel.
sendkeys and sendsystemkeys come close but fail. [ctrl-Esc] simulate tapping on the win key to open the start panel. If you had the right app (script) with the right hot key ('M") it is possible to create a script that calls the startmenu and then the letter M for minimize.
Reply #4 Friday, January 23, 2009 1:07 PM
This should help you....
Set shell = wscript.CreateObject("Shell.Application")
Shell.MinimizeAll
Reply #5 Saturday, January 24, 2009 7:47 AM
ohh this works fine, thank you a lot!...
But is there a way to extend this script to some kind of "toggle"? So when I click again it opens the windows before again? If that's too difficult it's ok... I was just wondering if it where possible...
the one you gave me works fine! ![]()
thanks!
Josh
Reply #6 Saturday, January 24, 2009 1:07 PM
Set Shell = CreateObject ("Shell.Application")
Shell.ToggleDesktop
Set Shell = Nothing
Reply #7 Saturday, January 24, 2009 9:09 PM
Try MinimizeAll / UndoMinimizeAll http://www.herbystweaks.net/. Copy the exe to anywhere you want and create a shortcut in Quick Launch.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Friday, January 23, 2009 9:15 AM
Save yourself some time time and do a Windows Key + M which will minimize all open windows (shift + windows key + m to restore window state) and should keep Samurize opened.