I've been trying to implement a system where my database kicks off the user after a certain period of inactivity. I've decided to define "inactive" as "the screensaver is on." Is there an API or something that can tell me if the screensaver is on, so I can log out the user?
Alternatively, is there another way to check a user's inactivity (without using resource-draining things like OnMouseMove, etc.)?
Alternatively, is there another way to check a user's inactivity (without using resource-draining things like OnMouseMove, etc.)?