Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm running VLC (a media player) in Windows 7. Is there way to control (as in: play, pause, set volume) a running instance of VLC from Python?
是的,您可以通过 telnet(使用telnetlib)控制它。还有libvlc bindings,但我不确定您是否可以使用它来控制现有的 VLC 实例。
作为已经提到的解决方案的一般替代方案,很高兴了解pywinauto
更新:
查看swapy以更轻松地使用 pywinauto。