Results 1 to 2 of 2

Thread: if mouse doesnt move logoff

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Newark-on-trent, Nottingham

    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

    but how do i count the seconds since the mouse was last moved????

  2. #2
    Join Date
    Aug 2001
    new jersey
    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

Click Here to Expand Forum to Full Width