SharpHook is a library to wrap some Win32 mouse and keyboard APIs and install a hook to generate standard .NET events when a key is pressed or a mouse event occurs.

The hook comes in handy when you need control over keypresses and mouse clicks happening out of your application.

You can attach your code to KeyDown, KeyPress and KeyUp events, MouseDown, Click, DoubleClick, MouseUp, MouseWheel, MouseMove.

A test application is included to see how the code should be used.



Release includes binaries and source code.


Up to date source code can be found at:

Leave a Reply

Your email address will not be published. Required fields are marked *