Jump to content


Photo

Show Desktop.scf


  • Please log in to reply
13 replies to this topic

#1 AiKscroll

AiKscroll
  • Members
  • 179 posts

Posted 20 August 2005 - 06:33 AM

Just a quick tip for those who write scripts for games. If you want to avoid having to alt-tab or WinButton out of games just assign a hotkey to run this program:

C:\Documents and Settings\Owner\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf


It is the shortcut to the Windows function 'Show Desktop', which you wouldn't be able to click the shortcut for if you were in a full-screen game.

#2 toralf

toralf
  • Fellows
  • 3948 posts

Posted 20 August 2005 - 07:06 AM

Hi AiKScroll,

Thanks for the tip.

I was hoping you would provided a small working script. With system variables, so it independed of the system your are using, etc.
So that newbies can immediatly use it. :)

#3 AiKscroll

AiKscroll
  • Members
  • 179 posts

Posted 20 August 2005 - 07:59 AM

Hmm... heres a simple script

$LWin:: ; any key, I chose LWin though
IfWinActive, My Game ; change to the name of your window
{
Run, C:\Documents and Settings\%A_ComputerName%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf
}
return


P.S. - There must be a way to get the name of your computer. How is it done in AHK? Nevermind Found it!

#4 toralf

toralf
  • Fellows
  • 3948 posts

Posted 20 August 2005 - 12:00 PM

How about %USERPROFILE% ?

e.g.
Run, %USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf

It should be user name, not Computer name.

#5 AiKscroll

AiKscroll
  • Members
  • 179 posts

Posted 20 August 2005 - 09:50 PM

Yeah that's better. I always use my one account, admin account. I guess other people could have many different users setup so essencially %USERPROFILE% is better than computer name.

#6 Guest2

Guest2
  • Guests

Posted 17 October 2005 - 03:45 PM

FYI: the standard windows hotkey for "show the desktop" .scf is Winkey+D

#7 foerno

foerno
  • Members
  • 8 posts

Posted 16 July 2011 - 03:45 PM

On my Windows 7 Home Premium, the path is the following:
Run, %userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Shows Desktop.lnk


#8 SoggyDog

SoggyDog
  • Members
  • 803 posts

Posted 18 July 2011 - 04:15 PM

If you're having trouble finding or accessing 'Show Desktop.scf' you can make your own and link to it:

[shell]
command=2
iconfile=explorer.exe,3
[Taskbar]
command=ToggleDesktop


#9 guest

guest
  • Guests

Posted 29 August 2012 - 01:42 AM

can anyone help me on how to, make f5 show my destop instead of pressing Windows-D. I have a presenter with an f5 button and i just want to be a able to clear my windoes and just show desktop thats is. F5 - Windows desktop. Please

#10 guest3456

guest3456
  • Members
  • 1328 posts

Posted 29 August 2012 - 01:51 AM

can anyone help me on how to, make f5 show my destop instead of pressing Windows-D. I have a presenter with an f5 button and i just want to be a able to clear my windoes and just show desktop thats is. F5 - Windows desktop. Please


heh, you realize you are on the autohotkey forums, where something like creating a hotkey to remap to a different keystroke is one of the main purposes of AHK?

<!-- m -->http://www.autohotke...ocs/Hotkeys.htm<!-- m -->
<!-- m -->http://www.autohotke.../misc/Remap.htm<!-- m -->

solution:

F5::#d


#11 guest

guest
  • Guests

Posted 29 August 2012 - 06:14 AM

I thought I might get solution here. Thank you very much for the help I appreciate it, it that looks like are fairly simple solution. Still no better though.

I edit script but the thing I get when its all done is a error message when I press F5.

Failed attempt
Action: <"C\Documents and settings\user\apllication data\microsoft

just tried another thing, used this script as I did the first time but on another computer,

; When I press F5, I want to Show Desktop
F5::Run, "%A_APPDATA%\Microsoft\Internet Explorer\Quick Launch\Shows Desktop.lnk"

this worked perfect on the other Pc despite me struggling and getting nothing on my netbook, i just get the error message. I have even looked for the file on the netbook and it is there.

F5::#d doesnt work either, yet it will show desktop when I press windows + D or if i select the file directly, it is odd.

#12 JSLover

JSLover
  • Members
  • 920 posts

Posted 29 August 2012 - 06:19 AM

F5::#d

...however, that syntax is really a "remap", it makes F5 "become" Win+D...

I prefer to avoid remapping, unless it's really needed...don't get me wrong, remapping is fine, when you know you're doing it & when it's needed, in most cases however, a simple Send, is, well, simpler...& all that's needed.

If you just want F5 to send Win+D, then, do just that...

F5::Send, #d
...it may seem like it's the same, as the above code, but it's not.

I edit script but the thing I get when its all done is a error message when I press F5.

You have some typo's...

; When I press F5, I want to Show Desktop
F5::Run, "%A_APPDATA%\Microsoft\Internet Explorer\Quick Launch\Show[color=red]s[/color] Desktop.[color=#FF0000]lnk[/color]"
...it's "Show Desktop.scf" not "Shows Desktop.lnk". Oh I see, foerno said it's different on Win7, but in that case, the path is different too.

#13 guest

guest
  • Guests

Posted 29 August 2012 - 06:38 AM

Panic over for some reason its just started to work. Despite me trying for hours to get it. I love PCs they can do absolutely everything but as always there is usually never a simple way, still love them more than any other form of computer. Heard macs are easier but Ive never been into them, In a odd way I kind of like these occasional challenges :)

Thanks for the help all. Amazing forum Ive never had such fast replies from a forum.

At last a happy AHK/PC user. :D

#14 Meetloaf

Meetloaf
  • Members
  • 46 posts

Posted 11 October 2012 - 08:40 PM

To help fellow googlers. I ran across this command that got this working, as I could not get the instructions here to work on my windows 7 machine.

Attach this and it will toggle the desktop:
Run shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}