| View previous topic :: View next topic |
| Author |
Message |
david55 Guest
|
Posted: Thu Oct 11, 2007 9:57 am Post subject: Quick Launch Minimize All Windows in Vista |
|
|
Dear friends,
In Vista, when you click the Show Desktop icon in Quick Launch, the Sidebar disappears. Apparently, the only way to show the desktop with the Sidebar is to use the <Windows Key + m> hotkey, which Minimizes All Windows. Is it possible to create an icon in Quick Launch which minimizes all windows and restores them again when pressed again? In other words, it does the same thing as the current Show Desktop icon but keeps the Sidebar?
Many thanks in advance,
David Walker |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Fri Oct 12, 2007 10:13 pm Post subject: |
|
|
perhaps a few ways of doing this. This does not even need to be a seperate icon, just always running
| Code: |
~#d::
Sleep, 200
WinRestore, Sidebar ;check title, or use ahk_class!
return
|
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me. |
|
| Back to top |
|
 |
david55 Guest
|
Posted: Sat Oct 13, 2007 9:32 am Post subject: Quick Launch Minimize All Windows in Vista |
|
|
Dear Engunneer,
Many thanks for your reply. Please forgive my ignorance, as I have just downloaded AutoHotkey and I'm not used to code, etc. I just want to understand the code you have given.
By using the <Sleep, 200> command, does this enable the #d hotkey to execute its normal function first, i.e. Show Desktop, before <WinRestore, Sidebar> then shows the Sidebar?
| engunneer wrote: | perhaps a few ways of doing this. This does not even need to be a seperate icon, just always running
| Code: |
~#d::
Sleep, 200
WinRestore, Sidebar ;check title, or use ahk_class!
return
|
|
|
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Sun Oct 14, 2007 4:19 am Post subject: |
|
|
that was my intention. The ~ lets windows see the #d. _________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me. |
|
| Back to top |
|
 |
david55 Guest
|
Posted: Sun Oct 14, 2007 5:50 pm Post subject: Quick Launch Minimize All Windows in Vista |
|
|
| engunneer wrote: | | that was my intention. The ~ lets windows see the #d. |
Thanks very much for that. It's working perfectly, although I did it in a slightly different way. I just wrote 2 Run commands; one to run the Show Desktop shortcut, and the 2nd to run the Sidebar. (WinRestore didn't work for some reason, nor did WinShow. Maybe the Sidebar isn't regarded as a window?) |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Mon Oct 15, 2007 4:24 pm Post subject: |
|
|
Perhaps. I don't know alot about the sidebar. _________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me. |
|
| Back to top |
|
 |
privatesam
Joined: 04 Aug 2008 Posts: 1
|
Posted: Mon Aug 04, 2008 2:30 pm Post subject: |
|
|
david55 - please can you post the code for the script that you wrote? I'm interested in doing this on my computer. Many thanks.
privatesam |
|
| Back to top |
|
 |
bostcelts8 Guest
|
Posted: Wed Oct 15, 2008 3:09 am Post subject: Quick Launch Minimize All Windows in Vista |
|
|
By default within Windows, windows key + m will show the desktop with the sidebar.
The below code will map this same command to the windows key d.
|
|
| Back to top |
|
 |
evan Guest
|
Posted: Wed Oct 15, 2008 3:30 am Post subject: |
|
|
lets not be complicate
just use the build it "show desktop" in the quick launch bar
 |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1381 Location: The Interwebs
|
Posted: Wed Oct 15, 2008 5:00 am Post subject: Re: Quick Launch Minimize All Windows in Vista |
|
|
@evan -
| david55 wrote: | | In Vista, when you click the Show Desktop icon in Quick Launch, the Sidebar disappears. Apparently, the only way to show the desktop with the Sidebar is to use the <Windows Key + m> hotkey, which Minimizes All Windows. |
|
|
| Back to top |
|
 |
evan Guest
|
Posted: Wed Oct 15, 2008 5:09 am Post subject: |
|
|
yea i saw that part, but dont quite get what he is saying
so i just config myself to answer his
| Quote: | | Is it possible to create an icon in Quick Launch which minimizes all windows and restores them again when pressed again |
i dont see a difference between Win+M and clicking the icon
both methods will minimized everything
however, Win+M will not active back the minimized clients vs. clicking the icon "restores them again"
can u please explain what is minimized but keep sidebar?
(i thought sidebar is the GUI of the program, which when its minimized, it doesnt make sense to still showing the GUI on screen) |
|
| Back to top |
|
 |
evan Guest
|
Posted: Wed Oct 15, 2008 5:27 am Post subject: |
|
|
o, got it
he meant the vista clock/utility sidebar which i disabled it from the first day
if thats the case, i know the hotkey, try:
Win + Shift + M
for more vista hotkeys, u can go
http://allhotkeys.com/windows_vista_hotkeys.html |
|
| Back to top |
|
 |
Ivona - Guest Guest
|
Posted: Sat Nov 01, 2008 9:35 am Post subject: |
|
|
Hello!
I have the same problem, but now i don`t understand what command i should write.
Can you please tell me should i write only #d::~#m ? And nothing else?[/u] |
|
| Back to top |
|
 |
jayhay Guest
|
Posted: Wed Apr 15, 2009 11:59 am Post subject: My (very ugly) solution |
|
|
The problem with mapping #d to #m directly is that #d is a toggle, whereas #m is a one-way command, that it - you can't press #m a second time to bring back the windows you minimized ...
... but, pressing Shift+#m has this effect. My knowledge of AutoHotkey is pretty limited, but i came up with the following, which works for me:
| Code: | #d::
if jayvar = on
{
send #M
jayvar = off
}
else
{
send #m
jayvar = on
}
return |
|
|
| Back to top |
|
 |
|