Postby hohame » 24 Jul 2022 15:56
There is a workaround if you use a script. For example, I use a mouse gesture software (StrokesPus.net) and wanted to minimize VLC to the system tray without my music stopping with a gesture.
(I think you can do that with a macro as well, then assign such macro to a keyboard button.)
For that, I first assigned a [Boss Key] in VLC settings in [Tools→Preferences—Hotkeys] ("Esc" in my case, instead of "Exit full screen", as you can exit it by double clicking). Then I also assigned a global [Play / Pause] combination ("Fn" + "F7" in my case).
Then, I activated the script record function in StrokesPus.net and pressed "Esc", then "Fn" + "F7".
You will have pauses between keystrokes; if you want your script to execute in full immediately, you'll need to set those pauses to the minimum value.
My script (I think it's Java but I'm not sure) that works for me in StrokesPus.net:
sp.ConsumePhysicalInput(true);
/*App Definition
Owner Class Name: Shell_TrayWnd
Root Class Name: Shell_TrayWnd
Parent Class Name: #32769
Class Name: Shell_TrayWnd
Module Path: C:\Windows
Module Name (EXE): explorer.exe
*/
sp.SendVKeyUp(vk.RETURN);
sp.Sleep(0);
sp.SendVKeyDown(vk.ESCAPE);
sp.Sleep(0);
sp.SendVKeyUp(vk.ESCAPE);
sp.Sleep(0);
sp.SendVKeyDown(vk.MEDIA_PLAY_PAUSE);
sp.Sleep(0);
sp.SendVKeyUp(vk.MEDIA_PLAY_PAUSE);
sp.ConsumePhysicalInput(false);
sp.ConsumePhysicalInput(false);