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 

Switch2Desktop V1.0
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Kevin
Guest





PostPosted: Sat Jan 21, 2006 2:47 pm    Post subject: Switch2Desktop V1.0 Reply with quote

Hello, this script is writen and tested on a Windows XP-computer. It switches to the desktop if you press F12.

Code:
#NoTrayIcon
F12::Goto, desktop

desktop:
WinActivate, ahk_class Shell_TrayWnd
MouseClick, right,  101,  13
SetKeyDelay, -1
Send, {UP}{UP}{UP}{UP}{ENTER}
return
Back to top
Kevin
Guest





PostPosted: Sat Jan 21, 2006 2:55 pm    Post subject: Reply with quote

Or a shorter version:

Code:
#NoTrayIcon
F12::Goto, desktop

desktop:
Send, #d
return
Back to top
BoBo
Guest





PostPosted: Sat Jan 21, 2006 3:00 pm    Post subject: Reply with quote

Code:
F12::Run, "C:\Documents and Settings\%USERNAME%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
This one too & reverse. TBH, its just a standard shortcut which you should find at your quicklaunch bar - labeled "Show Desktop". Check it out. Wink

Anyway. Thx for sharing it. Cool
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5382
Location: /b/

PostPosted: Sat Jan 21, 2006 3:10 pm    Post subject: Reply with quote

Hows about an even more shorter version
Code:
F12::#d
Back to top
View user's profile Send private message Visit poster's website
kapege.de



Joined: 07 Feb 2005
Posts: 188
Location: Munich, Germany

PostPosted: Mon Jan 23, 2006 9:57 am    Post subject: Reply with quote

The shortest version of all:
Code:
; Press Win + d to see the Desktop

Very Happy
_________________
Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 23, 2006 11:07 am    Post subject: Reply with quote

@kapege.de: not the shortest, but perhaps the fastest/using the less resources...
Well, the script can be useful if you are unfortunate enough to get a computer without Win key...
In this case, some script to remap a key combination to the Win key would be even more useful.


Last edited by PhiLho on Wed Jan 25, 2006 2:49 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
skrommel



Joined: 30 Jul 2004
Posts: 181

PostPosted: Tue Jan 24, 2006 11:52 pm    Post subject: Desktop Reply with quote

A different solution can be found in Desktop at www.donationcoders.com/skrommel.

Skrommel
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5382
Location: /b/

PostPosted: Wed Jan 25, 2006 12:12 am    Post subject: Reply with quote

@kapege.de, have you seen my code above? Win+d is a Windows hotkey that hides/shows the desktop in toggle mode. I tried to mention that by posting the code Confused
Back to top
View user's profile Send private message Visit poster's website
kapege.de



Joined: 07 Feb 2005
Posts: 188
Location: Munich, Germany

PostPosted: Wed Jan 25, 2006 9:57 am    Post subject: Reply with quote

Titan wrote:
@kapege.de, have you seen my code above? Win+d is a Windows hotkey that hides/shows the desktop in toggle mode. I tried to mention that by posting the code Confused


Has you seen this: Very Happy ?
I was just in a happy mood and kidding. For sure my code with the one line comment is not really helpful, but I win the price for the fastest script, didn't I? Very Happy again
_________________
Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5382
Location: /b/

PostPosted: Wed Jan 25, 2006 10:18 am    Post subject: Reply with quote

lol, it would be a faster script indeed Smile
Back to top
View user's profile Send private message Visit poster's website
Panadero
Guest





PostPosted: Thu Jan 26, 2006 10:20 pm    Post subject: Show Desktop Items? Reply with quote

Hi everyone,

what's the code I'd need to 'show desktop icons'? i get tired of seeing the icons sometimes..... any input would help.

thanks.
Back to top
T-nm
Guest





PostPosted: Mon Jan 30, 2006 9:17 pm    Post subject: Reply with quote

I'm not really certain of what you meant...
Back to top
not-logged-in-daonlyfreez
Guest





PostPosted: Tue Jan 31, 2006 1:50 pm    Post subject: Reply with quote

You will need to change registry settings:

HideDesktopIcons.reg:

Code:
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDesktop"=dword:00000001


ShowDesktopIcons.reg:

Code:
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDesktop"=dword:00000000


For this to work, you will need to shutdown all instances of Explorer, and start one again. It might even be necessary to logoff/login again to make the changes visible.
Back to top
Serenity



Joined: 07 Nov 2004
Posts: 1275

PostPosted: Tue Jan 31, 2006 7:19 pm    Post subject: Reply with quote

Panadero, it's possible to show/hide desktop icons with AutoHotkey. See this thread. :)
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
skrommel



Joined: 30 Jul 2004
Posts: 181

PostPosted: Mon Feb 20, 2006 8:22 pm    Post subject: WinHide and WinShow Reply with quote

A simple WinHide,Program Manager and WinShow,Program Manager should work.

Skrommel
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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