Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is a really nice <a href="http://globalmousekeyhook.codeplex.com/" rel="nofollow">CodePlex library</a> that will allow you to easily get Global Mouse and KeyBoard events.</p> <p>Description from above link:</p> <blockquote> <p>This library allows you to tap keyboard and mouse and to detect and record their activity even when an application is inactive and runs in background.</p> <p>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</p> </blockquote> <ul> <li>Mouse buttons clicked </li> <li><strong>Mouse wheel scrolls</strong> </li> <li>Key presses and releases</li> <li>Special key states</li> </ul> <hr> <p>Example (modified from the Demo program) it will only give you the Delta:</p> <pre><code>using System; using System.Windows.Forms; using MouseKeyboardActivityMonitor; using MouseKeyboardActivityMonitor.WinApi; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private readonly MouseHookListener m_MouseHookManager; public Form1() { InitializeComponent(); m_MouseHookManager = new MouseHookListener(new GlobalHooker()); m_MouseHookManager.Enabled = true; m_MouseHookManager.MouseWheel += HookManager_MouseWheel; } private void HookManager_MouseWheel(object sender, MouseEventArgs e) { labelWheel.Text = string.Format("Wheel={0:000}", e.Delta); } } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload