Help with an Explorer navigation shortcut/code
Hello all,
(Windows 11 23H2 22631.4602)
I have a case about minimizing windows (full screen windows and non-full-screen windows) on Windows: I want to do this with one key.
For this purpose I tried assigning the Win+Down shortcut to F12 for this, but Win+Down only minimizes non-full-screen windows and it only just restores full screen windows.
So then I tried to use the "Alt+Space+N" shortcut which is supposed to minimize every window. Using Autohotkey 2 I assigned this combination to F12. I also tried putting short :sleep: commands between the keys to solve various problems named below, but wasn't able to get the three-key combination to work reliably.
Here's my AHK2 script and it still doesn't work reliably;
F12::
{
Send("{Alt Down}")
Send("{Space Down}")
Sleep(50) ; Sleep for 50 ms
Send("{Space Up}")
Send("{Alt Up}")
Sleep(100) ; Sleep for 100 ms
Send("n")
Return ; Ensures the script exits after running once
}
Problems encountered;
* If the next focused window after the minimized window is a browser tab and has a video playing in it, i.e. Youtube, it gets paused
* If the window being minimized with this shortcut has a video playing in it in paused stat, the video is resumed before the window is minimized
* Some windows (i.e. Adobe applications) do not respond at all to the shortcut
* Many times when I triggered the shortcut, the current window didn't react, with the Alt+Space context menu staying open, as if no "N" keypress was sent to the system. Triggering the shortcut a second or third time then minimized the window.
I know that with Logitech MX series mice, you use their proprietary "Logitech Options" software to assign "Minimize" command to a mouse button. This shortcut works flawlessly regardless of window or application, and doesn't have any side affects.
So is there any way I can learn how that shortcut works, i.e. what codes it runs, or what goes on at that instance, so I can implement that for myself? Of course, I mean, other than using a Logitech MX mouse.
Also, would there be a better place to request this help?