/// <summary> /// start global hook /// </summary> private void StartHook() { if (KeyboardGlobalHook.IsHooking) { return; } this.SetCheck(true); KeyboardGlobalHook.Start(); }
/// <summary> /// stop global hook /// </summary> private void StopHook() { if (!KeyboardGlobalHook.IsHooking) { return; } this.SetCheck(false); KeyboardGlobalHook.Stop(); }
private void AppMenuReset_Click(object sender, EventArgs e) { KeyboardGlobalHook.Reset(); }