Hi Michael,
thanks for asking...
I actually have a customer using an app that keeps track of flags in the 
system when they are logged in.
Some users are leaving the app up and running in T.S. and then leave for 
the evening instead of logging off.
They set T.S. to forcibly close down the app and the T.S. session after 
2 hours of inactivity on T.S.
This is leaving the software with the flags of usage still set 
internally yada yada...

Since my first email....
I've been experimenting with a timer on the particular form, that will 
shut the app down and I am resetting the timer in the following events 
of the form:
1) MouseDown()
2) KeyPress()
3) Moved()

I think this is actually what will allow me to do what I want to do now.

Thanks though,
Philip
MB Software Solutions General Account wrote:
> 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.

Reply via email to