AutoHotkey Community

It is currently May 26th, 2012, 10:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: October 11th, 2007, 10:57 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2007, 11:13 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
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

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 13th, 2007, 10:32 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2007, 5:19 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
that was my intention. The ~ lets windows see the #d.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 14th, 2007, 6:50 pm 
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?)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2007, 5:24 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
Perhaps. I don't know alot about the sidebar.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2008, 3:30 pm 
Offline

Joined: August 4th, 2008, 3:19 pm
Posts: 1
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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 15th, 2008, 4:09 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2008, 4:30 am 
lets not be complicate
just use the build it "show desktop" in the quick launch bar
Image


Report this post
Top
  
Reply with quote  
PostPosted: October 15th, 2008, 6:00 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
@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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2008, 6:09 am 
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)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2008, 6:27 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2008, 10:35 am 
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]


Report this post
Top
  
Reply with quote  
 Post subject: My (very ugly) solution
PostPosted: April 15th, 2009, 12:59 pm 
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, iBob35555VR, just me, Tilter_of_Windmills, tomoe_uehara and 70 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