How to set a shortcut for 'show desktop' Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jelleeey
Posts: 33
Joined: 18 May 2021, 08:21

How to set a shortcut for 'show desktop'

18 May 2021, 08:39

Hello everyone,

Lets just start by stating that I am a noob without any programming experience. I am also new to windows as I am a long time OSX user. I have used AHK to help make the transition to windows smoother as I am quite used to certain hotkeys on the mac. Unfortunately there are still some problems that need to be figured out.

My goal:
- I want to assign a shortcut that simulates the 'show desktop' function, similar to clicking on the button on the right bottom corner of the taskbar.
- I know there is the windows + S shortcut, but this cannot be used because I have disabled all the windows shortcuts in Gpedit.msc. This was done because these were conflicting with certain shortcuts for programs I am using.

Question:
- Is there a way to create a shortcut that doesnt link to win+S but to the source script that is being triggered by this command.

Your help would really help me out tremendously as this function is quite essential for my everyday usage.

Greets Jelle
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: How to set a shortcut for 'show desktop'  Topic is solved

18 May 2021, 08:54

The following line can toggle show

Code: Select all

ComObjCreate("Shell.Application").ToggleDesktop()
Jelleeey
Posts: 33
Joined: 18 May 2021, 08:21

Re: How to set a shortcut for 'show desktop'

18 May 2021, 09:04

dude, you are a lifesaver :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee and 304 guests