AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Quick Launch Minimize All Windows in Vista

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
david55
Guest





PostPosted: Thu Oct 11, 2007 9:57 am    Post subject: Quick Launch Minimize All Windows in Vista Reply with quote

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)

PostPosted: Fri Oct 12, 2007 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
david55
Guest





PostPosted: Sat Oct 13, 2007 9:32 am    Post subject: Quick Launch Minimize All Windows in Vista Reply with quote

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)

PostPosted: Sun Oct 14, 2007 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
david55
Guest





PostPosted: Sun Oct 14, 2007 5:50 pm    Post subject: Quick Launch Minimize All Windows in Vista Reply with quote

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)

PostPosted: Mon Oct 15, 2007 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
privatesam



Joined: 04 Aug 2008
Posts: 1

PostPosted: Mon Aug 04, 2008 2:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
bostcelts8
Guest





PostPosted: Wed Oct 15, 2008 3:09 am    Post subject: Quick Launch Minimize All Windows in Vista Reply with quote

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.
Code:
#d::~#m
Back to top
evan
Guest





PostPosted: Wed Oct 15, 2008 3:30 am    Post subject: Reply with quote

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

PostPosted: Wed Oct 15, 2008 5:00 am    Post subject: Re: Quick Launch Minimize All Windows in Vista Reply with quote

@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
View user's profile Send private message AIM Address
evan
Guest





PostPosted: Wed Oct 15, 2008 5:09 am    Post subject: Reply with quote

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





PostPosted: Wed Oct 15, 2008 5:27 am    Post subject: Reply with quote

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





PostPosted: Sat Nov 01, 2008 9:35 am    Post subject: Reply with quote

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





PostPosted: Wed Apr 15, 2009 11:59 am    Post subject: My (very ugly) solution Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group