1 Replies - 523 Views - Last Post: 31 August 2013 - 06:22 AM Rate Topic: -----

#1 Bluezap  Icon User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 315
  • Joined: 19-January 12

Capture mouse movement off screen

Posted 30 August 2013 - 10:34 PM

Hey, i want to see if the mouse is moving (even off the program) and if it is not for my program to show a window.
Is this possible? To see if the mouse is moving even off my program (for example on the desktop or any other application)
I searched quite a bit but couldn't find a solution.
(I basically want to make a small screensaver sort of thing)
Thank You!
Is This A Good Question/Topic? 0
  • +

Replies To: Capture mouse movement off screen

#2 ybadragon  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 193
  • View blog
  • Posts: 1,207
  • Joined: 11-May 12

Re: Capture mouse movement off screen

Posted 31 August 2013 - 06:22 AM

yes it is possible, you can set a timer that checkes the position of the screen that your application is on every tick and create a rectangle the size of the form at that position, then check if that rectangle contains the mouseposition, if not, show a messagebox and stop the timer, then when the message box closes, start the timer again.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1