dcsimg
Results 1 to 2 of 2

Thread: if mouse doesnt move logoff

  1. #1

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

    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????

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    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
  •  



Featured


Click Here to Expand Forum to Full Width