Results 1 to 30 of 30

Thread: How to detect mouse inactivity in VB.Net ?

Threaded View

  1. #14
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: How to detect mouse inactivity in VB.Net ?

    Quote Originally Posted by Enigmatic View Post
    Look, this code is working right now. The mouse and keyboard gestures are reset and restarted. But when the web page is refreshed, the time needs to be reset, since the time is not reset, it refreshes every second. The only problem in the code is that the web page refreshes every second after the time expires.
    Ok take from there then. As i keep telling you, the only way to reset the idle time is to move the mouse or press a key. That's not going to happen. You could simulate user activity, which would reset the idle time.

    Or...

    Code:
    If CInt(Math.Floor((Environment.TickCount - lastInputInf.dwTime) / 1000)) mod 60 = 0 Then 'check if it has been 60 seconds
    That's my two penny-worth, now i'm unsubscribing from this thread
    Last edited by .paul.; Aug 3rd, 2019 at 04:42 PM.

Tags for this Thread

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