SharpHook.Reactive 5.3.6

dotnet add package SharpHook.Reactive --version 5.3.6
NuGet\Install-Package SharpHook.Reactive -Version 5.3.6
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="SharpHook.Reactive" Version="5.3.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpHook.Reactive --version 5.3.6
#r "nuget: SharpHook.Reactive, 5.3.6"
#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 SharpHook.Reactive as a Cake Addin
#addin nuget:?package=SharpHook.Reactive&version=5.3.6

// Install SharpHook.Reactive as a Cake Tool
#tool nuget:?package=SharpHook.Reactive&version=5.3.6


SharpHook provides a cross-platform global keyboard and mouse hook, event simulation, and text entry simulation for .NET. It is a wrapper of libuiohook and provides direct access to its features as well as higher-level types to work with it.

If you're using Rx.NET, you can use the SharpHook.Reactive package to integrate SharpHook with Rx.NET.


Basic Usage

Refer to the SharpHook package for the basic usage guidelines.

Reactive Global Hooks

SharpHook.Reactive provides the IReactiveGlobalHook interface along with a default implementation and an adapter which you can use to use to control the hook and subscribe to its observables. Here's a basic example:

using SharpHook.Reactive;

// ...

var hook = new SimpleReactiveGlobalHook();







// or

Reactive global hooks are basically the same as the default global hooks and the same rules apply to them.

SharpHook.Reactive provides two implementations of IReactiveGlobalHook:

  • SharpHook.Reactive.SimpleReactiveGlobalHook. Since we're dealing with observables, it's up to you to decide when and where to handle the events through schedulers. A default scheduler can be specified for all observables.

  • SharpHook.Reactive.ReactiveGlobalHookAdapter adapts an IGlobalHook to IReactiveGlobalHook. All subscriptions and changes are propagated to the adapted hook. There is no default adapter from IReactiveGlobalHook to IGlobalHook. A default scheduler can be specified for all observables.


SharpHook.Reactive contains the IReactiveLogSource and ReactiveLogSourceAdapter so you can use them in a more reactive way:

using SharpHook.Logging;
using SharpHook.Reactive.Logging;

// ...

var logSource = LogSource.RegisterOrGet();
var reactiveLogSource = new ReactiveLogSourceAdapter(logSource);


Icon made by Freepik from

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SharpHook.Reactive:

Package Downloads

Package Description


Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.3.6 296 5/22/2024
5.3.5 126 5/20/2024
5.3.4 264 5/5/2024
5.3.3 120 4/28/2024
5.3.2 454 4/2/2024
5.3.1 591 3/3/2024
5.3.0 199 2/24/2024
5.2.3 464 2/1/2024
5.2.2 429 1/13/2024
5.2.1 164 1/3/2024
5.2.0 171 12/16/2023
5.1.2 921 11/25/2023
5.1.1 641 10/13/2023
5.1.0 146 10/8/2023
5.0.0 663 8/10/2023
4.2.1 1,301 6/18/2023
4.2.0 1,938 4/8/2023
4.1.0 326 3/26/2023
4.0.1 273 3/12/2023
4.0.0 994 11/9/2022
3.1.3 415 10/27/2022
3.1.2 407 10/19/2022
3.1.1 461 8/5/2022
3.1.0 392 7/30/2022
3.0.2 529 7/1/2022
3.0.1 376 6/25/2022
3.0.0 519 3/27/2022
2.0.0 697 2/4/2022
1.1.0 813 12/4/2021
1.0.1 628 11/21/2021
1.0.0 373 11/8/2021
1.0.0-preview.4 150 11/6/2021
1.0.0-preview.3 167 11/1/2021
1.0.0-preview.2 155 10/26/2021
1.0.0-preview.1 142 10/26/2021