Show Desktop

Features wanted...
Post Reply
DixieCup48
Posts: 111
Joined: 30 Jan 2018 14:58

Show Desktop

Post by DixieCup48 »

Is there any way whereby XYP could have a button, script, or any other means to activate the command "Show Desktop" ?

Am aware there are a number of ways to accomplish this but would like to be able to do so via XYP. :tup:

Horst
Posts: 1093
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Show Desktop

Post by Horst »

The XY default button This PC contains it.
Screenshot - 11.03.2023 , 16_42_58.png
Screenshot - 11.03.2023 , 16_42_58.png (60.93 KiB) Viewed 519 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

jupe
Posts: 2809
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Show Desktop

Post by jupe »

Here is one way to do it, but it will be slow,

Code: Select all

run "powershell -command ""(New-Object -ComObject Shell.Application).ToggleDesktop()""",,, 0;
Of course you also have the other options mentioned last time you asked this too:
viewtopic.php?t=25278

DixieCup48
Posts: 111
Joined: 30 Jan 2018 14:58

Re: Show Desktop

Post by DixieCup48 »

To jupe

You gently but accurately admonished me on that one!

Is reminiscent of the quotation by Oscar Wilde , "Youth is such a wonderful thing - what a shame ;) to waste it on the young". ;)

jupe
Posts: 2809
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Show Desktop

Post by jupe »

Yes memory is good, but using the search feature is more reliable. BTW I converted previous suggestion to vbs, will work faster, but you need to create an external vbs file with this content:

Code: Select all

CreateObject("Shell.Application").ToggleDesktop
then run it like so: run "wscript ""c:\path\file.vbs""";

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Show Desktop

Post by yusef88 »

run "shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}"

admin
Site Admin
Posts: 60634
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Show Desktop

Post by admin »

Missing the final ; but bingo! :tup:

Post Reply