Minimize to desktop | vbs-File?

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

3,185 views 7 replies
Reply #1 Top

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.

Reply #2 Top

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 Top

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 Top

This should help you....

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

Reply #5 Top

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! :D

 

thanks!

 

Josh

Reply #6 Top

Set Shell = CreateObject ("Shell.Application")
Shell.ToggleDesktop
Set Shell = Nothing

Reply #7 Top

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?
End of quote

Try MinimizeAll / UndoMinimizeAll  http://www.herbystweaks.net/. Copy the exe to anywhere you want and create a shortcut in Quick Launch.