weirddave Posted August 28, 2021 Share Posted August 28, 2021 I want to detect when a PC is effectively idle so that I can turn off a wifi controlled socket (Audio Amp). Control of the socket isn't a problem. Detecting Idle is a bit tricky, if I'm watching a video then potentially I won't move the mouse or type. I did look into potentially reading the status of VLC, which is the only media player I use. Unfortunately this is also tricky as I may have multiple instances (max 1 playing while others paused), but in conjunction with other idle detection methods this would give me the greatest flexibility to conjure up a good control strategy for the wifi socket. The viable option I have come up with is to detect that the monitor is off (or has been told to turn off, I believe there may be a difference), but it doesn't seem to be easy. I can get around the monitor switching off while playing audio by using time as a factor, I wouldn't be doing that at night, for example. If anyone has some ideas I'd appreciate it :) Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now