Page 1 of 1

Show Desktop

Posted: 11 Mar 2023 16:17
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:

Re: Show Desktop

Posted: 11 Mar 2023 16:44
by Horst
The XY default button This PC contains it.
Screenshot - 11.03.2023 , 16_42_58.png

Re: Show Desktop

Posted: 11 Mar 2023 22:09
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

Re: Show Desktop

Posted: 11 Mar 2023 23:01
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". ;)

Re: Show Desktop

Posted: 11 Mar 2023 23:09
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""";

Re: Show Desktop

Posted: 13 Mar 2023 00:38
by yusef88
run "shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}"

Re: Show Desktop

Posted: 13 Mar 2023 09:59
by admin
Missing the final ; but bingo! :tup: