>I need to add an auto logoff feature to an existing application. This is the standard "log off the user after x minutes of inactivity". I can think of several ways to implement this, but before I begin, I'm interested in hearing how others have done this.
We did this by using a timer at the client side constantly checking for MROW()/MCOL() and LASTKEY() change. when they do not change for xx time, close the app. This will close APP when it is not active though. When yo want to close it only when user does not touch computer, (like for screen saver), just use Windows API functions to get the mouse position.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.