Detecting when the mouse is not moving

后端 未结 7 711
逝去的感伤
逝去的感伤 2021-01-31 05:06

I am able to find the cursor position. But I need to find out if the mouse is stable. If the mouse wasn\'t moved for more than 1 minute, then we have to alert the user.

相关标签:
7条回答
  • 2021-01-31 05:32

    Is there not a way to set a timer to start incrementing after every mouse movement event?

    If it gets to a minute then pop up the message box, but every time the mouse moves the timer gets reset.

    0 讨论(0)
提交回复
热议问题