-
Feb 23rd, 2004, 03:03 PM
#1
Thread Starter
Addicted Member
if mouse doesnt move logoff
Obviousley i would need a timer but how do i get my app to logoff if the computer hasnt been touched for say 5 minutes??
I understand the:
load form1
form1.show
but how do i count the seconds since the mouse was last moved????
-
Feb 23rd, 2004, 03:51 PM
#2
PowerPoster
you'll need to use an API call to catch ALL mouse movement, not just the movement in your VB forms, and use that mouse movement capture to reset a variable that gets incremented by your timer. Then if the variable ever gets high enough, you'll know the mouse hasn't moved.
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
|