How to capture mouse events on screen RRS feed

  • Question

  • Hi All,
             I am newbie to win32 development. I have to capture mouse events (mouse move, mouse click etc..) that occurs anywhere on screen not restricted to a particular application/window. This would be background deamon logging such events. It would be really helpful if someone could help me implement this.

    Tuesday, August 19, 2008 12:32 PM


  • To receive all keyboard events, regardless of which application/window is currently active then you need to register a keyboard hook function.

    Refer to the MSDN documentation for KeyboardProc for details.

    This question has been asked many times! Try searching for the answer to a question in the forum first as it will usually mean you'll get an answer quicker!
    • Edited by Neil Tippett Tuesday, August 19, 2008 1:46 PM spelling
    • Marked as answer by Yan-Fei Wei Monday, August 25, 2008 3:24 AM
    Tuesday, August 19, 2008 1:45 PM