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.


One day, hopefully this year 🤞