|
-
Jun 26th, 2011, 08:36 PM
#1
Thread Starter
Hyperactive Member
User inactive session
Hi,
I am working on VB 2010 windows application... Now client want to loged user logout if he/she not working in application for a particular time frame... Just like screensaver work in windows os.
Can anybody suggestion on this.. how to do it...
-
Jun 27th, 2011, 03:52 AM
#2
Addicted Member
Re: User inactive session
It would depend how you are able to check for keyboard and mouse inputs. But I believe you would want two timers for this. One continuously checking for any keyboard or mouse input. If it detects nothing, it enables the second timer where it would count up. If the first timer detects input at any time, it resets the counter and disables timer2.
As for the specific code, one of the more experienced coders may know how to check this. There would be a difference between checking system wide and just your program though. The simplest imo would be within your own program, though that has limitations.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|