The .NET library allows you to tap keyboard and mouse, to detect and record their activity even when an application is inactive and runs in background.
Introduction
This library attaches to windows global hooks, tracks keyboard and mouse clicks and movement and raises common .NET events with KeyEventArgs and MouseEventArgs, so you can easily retrieve any information you need:
- Mouse coordinates
- Mouse buttons clicked
- Mouse wheel scrolls
- Key presses and releases
Special key states
Additionally, there are
MouseEventExtArgs
andKeyEventExtArgs
which provide further options:- Input suppression
- Timestamp
- IsMouseDown/Up
- IsKeyDown/Up.
Prerequisites
- Windows: .Net 4.0+
Installation and sources
nuget install MouseKeyHook
Troubleshooting and support
- Found a bug or missing a feature? Feed the issue tracker