NMS Posted 4 hours ago Posted 4 hours ago What I have right now is a script that locks down the system if I'm away for certain period of time. At the moment I'm checking for mouse/keyboard input however this poses a couple of issues when I'm watching a movie for example. I thought about pixel checking however this might interfere with another function I have that changes wallpaper occasionally. Checking for window titles is not very efficient and some of them don't even provide any string that would contain any usable information. So I'm looking for ideas. Perhaps someone here has faced something similar. Maybe there's a way to check if a video is being played via GPU utilization but that's not perfect either.
rcmaehl Posted 2 hours ago Posted 2 hours ago (edited) Check powercfg /requests. Things that don't require user input, but prevent the computer from sleeping are listed there. Edited 2 hours ago by rcmaehl My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated. My Projects WhyNotWin11, MSEdgeRedirect Cisco Finesse, Github, IRC UDF, WindowEx UDF
argumentum Posted 2 hours ago Posted 2 hours ago Detect if there is sound playing. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
NMS Posted 54 minutes ago Author Posted 54 minutes ago 1 hour ago, argumentum said: Detect if there is sound playing. That wouldn't work as I often put music on. 1 hour ago, rcmaehl said: Check powercfg /requests. Things that don't require user input, but prevent the computer from sleeping are listed there. That is not something I have considered at all before. I'll look into it once home and see how that goes!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now