gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.04k stars 257 forks source link

nuget master

Mouse and Keyboard Hooking Library in c#

NEWS!

Added support for the detection of key combinations and sequences see: Quickstart - Detecting Key Combinations and Sequences

What it does?

This library allows you to tap the keyboard and mouse, to detect and record their activity even when an application is inactive and runs in the background.

Prerequisites

Installation and sources

  nuget install MouseKeyHook

How does it work?

This library attaches to windows global hooks, tracks keyboard and mouse clicks, movements and raises common .NET events with KeyEventArgs and MouseEventArgs, so you can easily retrieve any information you need:

Troubleshooting and support

Current project build status

The CI builds are generously hosted and run on the Travis and AppVeyor infrastructures.

Travis-CI AppVeyor
master master master
vNext vNext vNext

History

Year URL
2000 - 2008 http://www.codeproject.com/KB/cs/globalhook.aspx
2008 - 2015 https://globalmousekeyhook.codeplex.com/
2015 - now https://github.com/gmamaladze/globalmousekeyhook

Quick contributing guide

License

The MIT license see: LICENSE.txt