AutoHotkey Community

It is currently May 26th, 2012, 11:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 9th, 2008, 8:36 am 
Offline

Joined: November 9th, 2008, 12:33 am
Posts: 14
If you find that Window's built in Show/Hide desktop feature is too aggressive for your needs, hiding your sidebar or widget applications, you may find this script useful. Many thanks to jaco0646 for helping me figure out how to make this work.
Code:
#IfWinNotActive, Program Manager
#Space::
WinMinimizeAll
WinActivate, Program Manager
return
#IfWinActive, Program Manager
#Space::WinMinimizeAllUndo

You can, of course, change the hotkey to anything you like.
Update:
After some trial and error, I have devised a new script for this. The above works fine if you just want to create a hotkey, but the new version is much more flexible.
Code:
#NoEnv
#NoTrayIcon
IfWinActive, Program Manager
{
WinMinimizeAllUndo
}
Else
{
WinMinimizeAll
WinActivate, Program Manager
}

To assign a hotkey, just save this as a script to your hard drive, and point your hotkey to it in your always-running hotkey script, like so:
Code:
#Space::Run,Path to script

Or compile the script into an exe and point one of your tablet's special screen buttons at it. This was my whole reason for revising this, in fact. For some reason, my tablet screen buttons keep trying to open my .ahk scripts in notepad instead of running them, so I needed something that was hotkey independent and could be compiled.
Enjoy!
And thanks to everyone who participates in these forums. I learn so much going through the old threads, it's just wonderful to find such a nice, helpful community. After spending time in some Vista troubleshooting forums, I really appreciate the positive, helpful atmosphere here.


Last edited by BookwormDragon on November 12th, 2008, 6:55 am, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2008, 10:31 am 
This is same as Win+M right? How to do WIN+D? The aggressive version that hides dialog boxes etc.

I use a script that place an application button (like regular program) on the task bar and I can drag something over the button, it will minimize the windows and I will continue dragging to some desktop item...but it's not working every time (some applications are arrogant :) Using send keys was not working too..is there some other command for WIN+D?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2008, 8:58 pm 
Offline

Joined: November 9th, 2008, 12:33 am
Posts: 14
Vavo wrote:
This is same as Win+M right?

Yes, this is like Win + M, except that it toggles between minimize & restore, which is something that Win + M won't do on my computer.
Quote:
..is there some other command for WIN+D?

Not that I can remember off the top of my head.
Quote:
How to do WIN+D? The aggressive version that hides dialog boxes etc.

Not sure exactly what you mean here. You can remap Win+D to another hotkey like this:
Code:
#Space::#d

Or you could point the hotkey to the Show/Hide shortcut that windows places on the quick launch toolbar. For convenience, just move the shortcut wherever you want it, and then point the script to it, like so:
Code:
#Space::Run,c:\show desktop.lnk ;Change to your path

This has the advantage of allowing you to reuse the Win+D combo for something else, without losing the show/hide functionality.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2008, 5:36 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Doesn't seem to affect my secondary monitor. Should it?

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2008, 6:15 pm 
Offline

Joined: November 9th, 2008, 12:33 am
Posts: 14
SoggyDog wrote:
Doesn't seem to affect my secondary monitor. Should it?

I only use one monitor, so I have no idea how to make it work on the secondary monitor. Maybe someone else knows?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group