Bingo John!
That is the route I've taken! :)
Thanks
Philip

Anthony J. Gundrum wrote:
> An off-the cuff thought here is to add a timer to the main form that resets
> itself whenever there is activity in the application.  If the timer reaches
> the 1 hour mark then have it call the log off procedure.
>
> John G.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Steve Ellenoff
> Sent: Wednesday, November 05, 2008 23:50
> To: [email protected]
> Subject: RE: Determine if no activity in VFP App Screen
>
> Expanding on Allen's idea here -- anytime Windows is shutting down it 
> sends shutdown messages to all running applications so that they can 
> do housecleaning. You can have VFP bind to this message (assuming 
> you're running VFP9) and have your app close itself down as Windows 
> is closing down as well. I don't have time at the moment to look 
> further into the details for you, but if you decide you like this 
> approach and get stuck, I'll see if I can find more of the details.
> Steve
>
> At 09:19 AM 11/05/2008, you wrote:
>   
>> I wonder if terminal server gives of a windows message. I would have
>>     
> thought
>   
>> so. If so maybe a bindevents might do the trick
>> Allen
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Philip Borkholder
>> 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.
>>
>>
>>
>>
>>     
[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.

Reply via email to