Isn't there an "on shutdown" or "on logoff" routine built into foxpro? Wouldn't that work?
--- On Wed, 11/5/08, MB Software Solutions General Account <[EMAIL PROTECTED]> wrote: From: MB Software Solutions General Account <[EMAIL PROTECTED]> Subject: Re: Determine if no activity in VFP App Screen To: "ProFox Email List" <[email protected]> Date: Wednesday, November 5, 2008, 3:48 PM Philip Borkholder wrote: > Hello all, > Does anyone have a method or API call to determine if a user has had no > activity on the active screen on a workstation? (actually in a Terminal > Server session) ? > > I have a customer, who already has Terminal Server set to decide if no > activity has taken place for 2 hours, then it logs off the session, but > then it bombs out the VFP app and messes up things. > > I need to have something on the VFP app to determine if there has been > no activity in this session for 1 HOUR and then gracefully log off my > app BEFORE the T.S. session shuts down because of inactivity. > > I'm not looking for a data related determination, but more so activity > on the screen or something in Windows API to determine this if possible. > > > Thanks, > > Philip B. Hi, Philip. It doesn't help with your question really (sorry!), but this is another reason why I favor the disconnected approach, similar to what Charlie Coleman uses. Then again, it's easier for me since I'm not using VFP on the backend anymore, but instead MySQL. Let me take a stab at helping you: Are you looking to somehow keep your app alive by simulating some sort of activity so that the TS doesn't disconnect? Perhaps something in a timer where you move the mouse a fraction of a foxel (...iow, a super small unit)? Good luck! --Michael [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

