File needed: Download
- Import it into your project.
How to use:
using Gma.UserActivityMonitor;
Enable/Disable features:
// Enable/Disable MouseMove
HookManager.MouseMove += HookManager_MouseMove;
HookManager.MouseMove -= HookManager_MouseMove;
// Enable/Disable MouseClick
HookManager.MouseClick += HookManager_MouseClick;
HookManager.MouseClick -= HookManager_MouseClick;
// Enable/Disable MouseUp
HookManager.MouseUp += HookManager_MouseUp;
HookManager.MouseUp -= HookManager_MouseUp;
// Enable/Disable MouseDown
HookManager.MouseDown += HookManager_MouseDown;
HookManager.MouseDown -= HookManager_MouseDown;
// Enable/Disable MouseDoubleClick
HookManager.MouseDoubleClick += HookManager_MouseDoubleClick;
HookManager.MouseDoubleClick -= HookManager_MouseDoubleClick;
// Enable/Disable MouseWheel
HookManager.MouseWheel += HookManager_MouseWheel;
HookManager.MouseWheel -= HookManager_MouseWheel;
// Enable/Disable KeyDown
HookManager.KeyDown += HookManager_KeyDown;
HookManager.KeyDown -= HookManager_KeyDown;
// Enable/Disable KeyUp
HookManager.KeyUp += HookManager_KeyUp;
HookManager.KeyUp -= HookManager_KeyUp;
// Enable/Disable KeyPress
HookManager.KeyPress += HookManager_KeyPress;
HookManager.KeyPress -= HookManager_KeyPress;
source: Code Project