Change VLC window programmatically

I'm sure others have run into this problem too ...

I often watch videos in a small VLC window while working on other tasks, but no matter where the window is, I end up having to access something in the GUI behind it and manually move the video window first.

This can be solved if the VLC window snaps to a different corner whenever the mouse cursor is moved over it. I have not found an application that does this, so I would like to write one. What technologies could I use for this? Cross platform can be tricky ... so what if only on Windows?

I would prefer something in C # (or Python), but I want to learn something new if need be.

+2


source to share


2 answers


Here's just a Windows solution. You don't need to hover your mouse over the window. All you have to do is Find a window using its name and send a WM_MOVE. I don't know the name of the window that VLC uses. You can use Spy ++ to find its name.



+1


source


It's a bit of an OOT, but on Windows 7 shaking the active window will hide others to open the desktop (and so will right-click / hover on the taskbar). Instead of hiding / moving the vlc, you can just open the entire desktop temporarily. Shaking the active window returns everything again.



0


source







All Articles