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.
I bet this would be easy to implement on Linux though....
If your mouse works out of the box.
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