This is handled in Visual MaxFrame, a VFP application framework, by including a:
oApp.SetLastUserActivity()
in their bases classes.GotFocus() method. So the global application object, oApp, can keep track of how long the application has been inactive. Then, after the specified period of inactivity (5 minutes in your case), oApp would shut down all open forms and shut down the app. I think other frameworks do something similar
>I want to halt an application when the user leaves it idle for 5 minutes. For screens I use the keypress() method to detect the keyboard activity and reset the timer. How do I detect the MOUSE activity? May be I should use ON KEY LABEL command?
>TIA
>Ed
Chris McCandless
Red Sky Software