Hi, I have a problem that I think might be insurmountable, but I thought I'd throw it in to see if any of the experts in this forum can give me some ideas.
I have a program (in vfp6 sp5) that is used by many concurrent users (on a WAN using Terminal Server/Citrix) and some have a habit of walking away and leaving the program running, sometimes for days at a time. I want to shut down each user session after a period of inactivity and I have read the other posts on shutting down vfp programs automatically but I have the following problems:
My application has over 100 forms and the user might walk away with any form having the focus. Setting a timer on every screen would be really difficult - so I'm looking for a timer that is not form-based.
If I find the timer I want, I need to reset the timer on mouse movement or keystrokes. The mouse is not too hard using on key label mouse command, but the keypress has me stumped as there is no on key label (any) or anything that emulates the keypress form event.
So what I am asking is:
1. Is it possible to run a Global Timer that is not dependent on a particular form having the focus
2. If 1. is possible is it possible to capture keypress events in a global way that is also independent of which form has the focus.
Thanks very much for your patience with this very long post.
I have a program (in vfp6 sp5) that is used by many concurrent users (on a WAN using Terminal Server/Citrix) and some have a habit of walking away and leaving the program running, sometimes for days at a time. I want to shut down each user session after a period of inactivity and I have read the other posts on shutting down vfp programs automatically but I have the following problems:
My application has over 100 forms and the user might walk away with any form having the focus. Setting a timer on every screen would be really difficult - so I'm looking for a timer that is not form-based.
If I find the timer I want, I need to reset the timer on mouse movement or keystrokes. The mouse is not too hard using on key label mouse command, but the keypress has me stumped as there is no on key label (any) or anything that emulates the keypress form event.
So what I am asking is:
1. Is it possible to run a Global Timer that is not dependent on a particular form having the focus
2. If 1. is possible is it possible to capture keypress events in a global way that is also independent of which form has the focus.
Thanks very much for your patience with this very long post.