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 ?
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



Vote for your favourite post


1 comment:
you can also try the control interfaces of VLC. Just remember to use vlc --intf qt --extraintf http when launching it.
Post a Comment