How to catch Keyboard and mouse events?

Posted by Alexey Malistov on Stack Overflow See other posts from Stack Overflow or by Alexey Malistov
Published on 2010-04-18T23:16:28Z Indexed on 2010/04/18 23:23 UTC
Read the original article Hit count: 337

Filed under:
|
|

I want to create an application. This application has to do something when a user presses special keys on keyboard or/and uses scroll wheel. This application is a service. It has no windows. I want to catch any keyboard or mouse events which were designed with other applications.

For example, you are watching TV by 3rd party application. If you press Ctrl + Shift and use scroll wheel my application changes the volume.

I use Windows 7 x64 and Visual Studio 2008.

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows