Python Forum
How would I be able to detect a media player app playing a video. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How would I be able to detect a media player app playing a video. (/thread-40932.html)



How would I be able to detect a media player app playing a video. - phpjunkie - Oct-16-2023

I'm trying to stop windows from powering off the monitor while playing a game or from watching movies and the only way I've found so far is using opencv with screenshots of the desktop.


RE: How would I be able to detect a media player app playing a video. - deanhystad - Oct-16-2023

Set the windows power options (Control Panel > Hardware and Sound > Power Options). You can control when the display turns off and the computer sleeps.


RE: How would I be able to detect a media player app playing a video. - phpjunkie - Oct-16-2023

I know this. I have a try icon setup so I can shut off my monitors on the fly.