How to detect a mouse event of other applications?

Hallo,
i would like to get a mouse event when my console application is running. Under http://www.codeproject.com/shell/taskbaricon.asp is a nice solution but I need to get the mouse event although i did not click on the systray icon. A global mouse event listener in other words.

Thanks a lot for your help. I hope you can understand my English.


Answer this question

How to detect a mouse event of other applications?

  • Liu Feng

    I assume that How to detect a mouse event of other applications is also your question. That is a better place to ask this question.

  • dindelus

    you have to Perform hooking in your application to trap the Mouse Event in any of the application.so at the time when you will click on any app the event will send to your app and you can handle the event in your call back routine

    thanx


  • CECOOK

    There is something called mouse capture that might do what you need; see the SetCapture function and related functions. Otherwise, the most common solution is to use system-wide hooks, which is advanced Windows programmming. These are all outside the scope of these forums.



  • How to detect a mouse event of other applications?