Detect any kind of activity in a window.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

I need to write a function so if the user doesn't do anything in 15 minutes,
it will log them out. I've got the timer set up fine I'm just looking for an
easy way to detect people doing anything. What's the easiest way to do it?
It looks like it may be mousemove on the windows. Is this reasonable?

TIA - Jeff.
 
UJ said:
I need to write a function so if the user doesn't do anything in 15
minutes, it will log them out. I've got the timer set up fine I'm just
looking for an easy way to detect people doing anything. What's the easiest
way to do it? It looks like it may be mousemove on the windows. Is this
reasonable?

I have used GetLastInputInfo to detect an idle user. Seems to work quite
well for me.

Marc
http://nomagichere.blogspot.com
 
Back
Top