PDA

View Full Version : checking user presence



Tomasz
3rd September 2010, 14:08
Hello!

I want my program to check if user is still doing something with it. If he is not doing anything for about five minutes, after that time my program should do some things. Now I don't know how should check if user is still present. The best idea I think is to check every 30 seconds if cursor is on the same position. How can I check my cursor position? Or maybe my idea is bad?

thanks in advance
best regards
Tomasz

wysota
3rd September 2010, 14:19
You wish to know whether the user is doing anything with your program or anything at all with the machine? The former can be done with installing an event filter on the application object and monitoring input event flow. The latter requires tapping into the native API of each platform.