ActivityManager.MouseMove += HookManager_MouseMove; ActivityManager.MouseClick += HookManager_MouseClick; ActivityManager.MouseUp += HookManager_MouseUp; ActivityManager.MouseDown += HookManager_MouseDown;
public static class ActivityManager { public static event KeyEventHandler KeyDown; public static event KeyPressEventHandler KeyPress; public static event KeyEventHandler KeyUp; public static event MouseEventHandler MouseClick; public static event EventHandler<MouseEventExtArgs> MouseClickExt; public static event MouseEventHandler MouseDoubleClick; public static event MouseEventHandler MouseDown; public static event MouseEventHandler MouseMove; public static event EventHandler<MouseEventExtArgs> MouseMoveExt; public static event MouseEventHandler MouseUp; public static event MouseEventHandler MouseWheel; }
s_KeyboardHookHandle = SetWindowsHookEx( WH_KEYBOARD_LL, s_KeyboardDelegate, IntPtr.Zero, 0);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)