MouseKeyHook 5.7.1

.NET 6.0 .NET Framework 4.7.2
dotnet add package MouseKeyHook --version 5.7.1
NuGet\Install-Package MouseKeyHook -Version 5.7.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MouseKeyHook" Version="5.7.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MouseKeyHook --version 5.7.1
#r "nuget: MouseKeyHook, 5.7.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MouseKeyHook as a Cake Addin
#addin nuget:?package=MouseKeyHook&version=5.7.1

// Install MouseKeyHook as a Cake Tool
#tool nuget:?package=MouseKeyHook&version=5.7.1

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
     * [NEW] Key combinations and sequences

     Additionally, there is a possibility to supress certain keyboard or mouse clicks, or detect special key combinations.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible. 
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.

NuGet packages (15)

Showing the top 5 NuGet packages that depend on MouseKeyHook:

Package Downloads

This library makes it possible to inspect any controls properties, events and even the document outline in your Windows Form at runtime. The only thing you have to do is to create an instance of the Inspector class and then run your winform as normal. Press "Ctrl + F8" to activate the inspector and open the control view window which will show all the data from the inspected control. Make sure the window you wanna inspect has focus, hold down "Alt" and hover your mouse over any given control and see the magic come to life.


This is an extension to the globalmousekeyhook and InputSimulator library which allows you to tap keyboard and mouse,to detect and record their activity event when an application is inactive and runs in background.The Windows Input Simulator provides a simple .NET(C#) interface to simulate Keyboard or Mouse input using the Win32 SendInput method.一款类似于按键精灵的模拟键盘和鼠标操作的c#扩展类库.


Package Description


This library allows you to register application wide or global hotkeys. It can be used to register hotkeys (one key, possibly multiple modifiers, like "ctrl+alt+j") and chords (multi key hotkeys, like "ctrl+k, ctrl+c" or "ctrl+alt+x, b, q").



GitHub repositories (20)

Showing the top 5 popular GitHub repositories that depend on MouseKeyHook:

Repository Stars
Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
Remote Administration Tool for Windows
Unified lighting effects across multiple brands and various games.
🔥小巧、美观的桌面快速启动工具 Small, beautiful desktop quickstart management tool with integrated Everything search
Version Downloads Last updated
5.7.1 8,360 4/10/2023
5.6.0 322,137 1/24/2018
5.6.0-alpha 1,126 1/19/2018
5.5.0 2,025 1/16/2018
5.4.0 67,506 1/8/2016
5.3.0 5,693 6/22/2015
5.1.0 1,833 5/24/2015
5.0.0 1,877 5/12/2015