|
Author |
Message |
Judy Nykilchu #1 / 5
|
 timer question
I need to put a timer on my application which if there is no action within 45 seconds the user is logged out of the system. I know how to set the timer to 45 second, but I'm lost in how to logged the user out. Any ideas? Judy
|
Fri, 10 Sep 2004 23:20:25 GMT |
|
 |
Phill #2 / 5
|
 timer question
Judy, How did they log in to begin with? Whatever it is that let's them into the application, undo it! HTH, Phill W.
. . . Quote: > but I'm lost in how to logged the user out. Any ideas?
|
Fri, 10 Sep 2004 23:49:39 GMT |
|
 |
Alex #3 / 5
|
 timer question
I think he means log the user out of windows. You can do this using the ExitWindows API Declare Function ExitWindowsEx& Lib "user32" _ (ByVal uFlags As Long, ByVal dwReserved As Long) Public Const EWX_FORCE = 4 Public Const EWX_LOGOFF = 0 Public Const EWX_REBOOT = 2 Public Const EWX_SHUTDOWN = 1 Private Sub Timer1_Timer() Call ExitWindowsEx(EWX_LOGOFF, 0) Unload Me End Sub Alex
Quote: > Judy, > How did they log in to begin with? > Whatever it is that let's them into the application, undo it! > HTH, > Phill W.
> . . . > > but I'm lost in how to logged the user out. Any ideas?
|
Sat, 11 Sep 2004 00:45:10 GMT |
|
 |
Phill #4 / 5
|
 timer question
Alex, I'm not so sure that's what Judy meant ... I don't know how long /your/ machine takes to get going, but I, for one, would be d*** annoyed if an application logged me out after just 45 seconds of not using it. Regards, Phill W.
Quote: > I think he means log the user out of windows.
. . .
|
Sat, 11 Sep 2004 19:18:07 GMT |
|
 |
Alex #5 / 5
|
 timer question
Phil, That's what I thought at first, then I thought that it could be some simple logging out program which logs you out after a certain even has occured. It could ask you if you wished to log out immeadiately or cancel the process. If after 45 seconds the user hasn't responded it logs out automatically... just a possiblilty. Anyway maybe this is one of those 'annoying' programs. Alex
Quote: > Alex, > I'm not so sure that's what Judy meant ... > I don't know how long /your/ machine takes to get going, but I, > for one, would be d*** annoyed if an application logged me > out after just 45 seconds of not using it. > Regards, > Phill W.
> > I think he means log the user out of windows. > . . .
|
Sun, 12 Sep 2004 02:03:53 GMT |
|
|
|