Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inactivity Timer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00009354
Message ID:
00010227
Views:
49
>>>>>>>I need a way to force a VFP app to quit if a user has not used the mouse or the keyboard in a certain amount of time. The user may be in a form, report, or menu.
>>>>>>>
>>>>>>>Any Ideas, maybe an API Call?
>>>>>>>
>>>>>>>Robert Gomez
>>>>>>>regomez@tsrcom.com
>>>>>>
>>>>>>
>>>>>>Why not check out the TIMER control?
>>>>>>
>>>>>>Tom
>>>>>
>>>>>How can you know if something (anything) happend in the application from the timer?
>>
>>>??!
>>
>>Vlad
>>
>>Do a loop with the timer contained in it. The timer will expire and the loop will cycle. At this point the system should check resources. Another trick is to check system time against the value when you started. This way you can timeout after (ie) 15 minutes of inactivity.
>>
>>Tom
>
>ok, how would you use this w/ a read events???

The same way you do anything else in VFP...

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform