Jump to content

Recommended Posts

Posted

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.

Posted (edited)

Check powercfg /requests. Things that don't require user input, but prevent the computer from sleeping are listed there.

Edited 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 FinesseGithubIRC UDFWindowEx UDF

 

Posted
1 hour ago, argumentum said:

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!

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...