public a() { this.InitializeComponent(); int hotkeyId = 0; a.RegisterHotKey(this.Handle, hotkeyId, 0U, 45U); a.RegisterHotKey(this.Handle, hotkeyId + 1, 0U, 35U); this.timer.Start(); MouseHook.Start(); }
public a() { InitializeComponent(); int num = 0; RegisterHotKey(base.Handle, num, 0u, 45u); RegisterHotKey(base.Handle, num + 1, 0u, 35u); timer.Start(); MouseHook.Start(); }
public static void stop() { MouseHook.UnhookWindowsHookEx(MouseHook._hookID); }
public static void Start() { MouseHook._hookID = MouseHook.SetMouseHook(MouseHook._proc); }