this post was submitted on 16 Feb 2026
7 points (88.9% liked)

Windows 11

1170 readers
1 users here now

Welcome to the community for Windows 11, Microsoft's latest computer operating system.

Rules:

founded 2 years ago
MODERATORS
 

The main 'Show Desktop' function (Win+D) is a bit overbearing, in that it will minimise desktop applications that are intended to be a permanent part of the desktop itself (such as Portals). I discovered that Win+M will minimise all windows, and won't affect desktop-integrated applications, which is nice. I'd like to have this be a button on the taskbar I can click that will send that keyboard shortcut, but I have no clue how to do that, or if there's a more direct way to invoke the function that doesn't involve simulating keystrokes.

I basically want the button there so I can use that instead of the baked-in 'Show Desktop' one. I can of course just use the keyboard shortcut, but having a clickable button there would also be very useful for me.

This seems like it should be a simple enough thing to accomplish, but I've been struggling with AutoHotKey tutorials and .bat scripts for the last 45 minutes and am still none the wiser. I'm probably over-complicating things!

Thank you for your help.

EDIT: 2026-03-13

Figured out how to do it with AutoHotKey, and of course it was so simple that I feel embarrassed for having asked for help in the first place.

This is the entire script:

#Requires AutoHotKey v2.0
SendInput "#m"
ExitApp

The # symbol after SendInput represents the Windows key, and m is, well, m!

In order to have a clickable button on the Taskbar, I converted the script to an .exe using AHK's built-in tool for that.

you are viewing a single comment's thread
view the rest of the comments
[–] nathan@lemmy.permisuan.com 1 points 3 weeks ago (3 children)

I bet this would be easy to implement on Linux though....

[–] Onomatopoeia@lemmy.cafe -4 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

If your mouse works out of the box.

[–] nathan@lemmy.permisuan.com 1 points 3 weeks ago* (last edited 3 weeks ago)

Mouse should work? Sound drivers or wifi drivers like 15 years ago.... yeah there were a few issues. But I haven't had issues like that in years

load more comments (1 replies)