Jump to content
Sign in to follow this  

Detecting user inactivity

Recommended Posts


I have an autoit script that sends messages to users on our local network. I would like to detect if the user is likely at their computer or not based on mouse and keyboard activity. I can easily compare mouse position over time to sense if they are "working". However, how do I detect if the user is typing away at some program and not touching their mouse at all? I don't really want to use _IsPressed or regular keyboard hooks. Is there an easy way to detect if any key has been pressed or alternatively, is there a way to poll Windows' method of detecting user inactivity that starts the screen saver?

Progress lies not in enhancing what is, but in advancing towards what will be. - Kahlil Gibran

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.