Re: Timer??

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thank you so much!!!

"DRBarkley" <David.NOSPAMBarkley@xxxxxxxxxxxxxxxx> wrote in message
news:uNDWmadUGHA.4772@xxxxxxxxxxxxxxxxxxxxxxx

"TimL" <timl@xxxxxxxxxxxxxxx> wrote in message
news:uZZeDXdUGHA.5660@xxxxxxxxxxxxxxxxxxxxxxx
I am using VB6.
I have an application that a someone is running and I want to close the
app
if he/she has stepped away for more than 15 minutes. If someone starts
working in the app before the 15 minutes are up, I want the timer to
start
back at 0 again.

Any suggestions would be appreciated
TimL



Hey TimL,

You can set a global variable to the current time every time the user hits
a
key or moves the mouse.
Then, in a timer, check the DateDiff between the global time and the
current
time.

HTH,

DRBarkley




.



Relevant Pages

  • Re: msflexgrid with ctrl-pgup & ctrl-pgdn
    ... It is still possible for your VB app to ... Timer event, which occurs about ten milliseconds after the key was ... Private Sub Form_Unload ... Private Declare Function SetWindowsHookEx Lib "user32" _ ...
    (comp.lang.basic.visual.misc)
  • Do-Nothing WinForm App Using 4 Threads?
    ... refactoring a multi-threaded GUI app at work and want to be sure it's ... I then added a Windows Timer control to the form and updated a label ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: ldb file
    ... have a timer event set to check the value of the field in the back end to see ... If it indicates the app should be closed, then give the user a 5 ... Is there a way that I can I kick out the ...
    (microsoft.public.access.gettingstarted)
  • RE: ldb file
    ... have a timer event set to check the value of the field in the back end to see ... If it indicates the app should be closed, then give the user a 5 ... quit the application. ...
    (microsoft.public.access.gettingstarted)
  • Re: Disk thrashing with paging file
    ... Your Timer suggestion is a very good idea which I'll try before ... to stop Windows paging out memory. ... user interface app and SQL Server. ... SetProcessWorkingSetSize or VirtualLock APIs make a difference? ...
    (microsoft.public.vb.winapi)