Friday, December 12, 2025

ALT+F5

It's been decades I'm using the ALT+F5 combo to spawn a new terminal. I couldn't even tell if that was some default settings of Enlightenment, some defaults of the window manager I used before enlightenment or something that just felt natural since ALT+F4 closes a window.

But of course that doesn't work with Windows ... but maybe it could. Let's locate my `User Pinned\TaskBar` first, which appears to be in some sub-folder of Internet Explorer within the hidden AppData (and well, a good old dir /s TaskBar remains the most reliable way to find out)

After that, configuring is even easier than changing the icon. There was a "Shortcut key" field waiting for me, in the "shortcut" panel ... I'm baffled. How could I've been missing it for over 10 years if it was so easy ? Was it something introduced only in recent versions of Windows ?
 

So I know win32gui (from pywin32) can script some actions to some Windows the way eesh used to do. Can I bind some key to "uniconify the music player" ?
def callback(hwnd, any):
     global found
     if win32gui.GetWindowText(hwnd) == any:
         found = hwnd
     if any in win32gui.GetWindowText(hwnd):
         print("%s - %s" % (str(hwnd), win32gui.GetWindowText(hwnd)))
         
w.EnumWindows(callback, "VLC")
can find me some stuff (thanks the doc) once found, I can use ShowWindow to switch between win32con.SW_RESTORE and win32con.SW_SHOWMINIMIZED (thanks the rubber duck, I guess)
  • Window class is useless. It just tells me VLC is coded in QT :P
  • the "select media" key I want to use does not seem to be usable as a shortcut ... can I use powertoys key remapping to deal with that ?
  • it turns out these are 'AppKeys' in Windows vocabulary, and there are registry keys to define what happens when you hit them (surprisingly, this was all empty on my machine)
  • "Run: minimized" on the link to the python script avoids flashing black command window

1 comment:

wiki.videolan said...

you can also try the control interfaces of VLC. Just remember to use vlc --intf qt --extraintf http when launching it.