Пример #1
0
 /// <summary>
 /// start global hook
 /// </summary>
 private void StartHook()
 {
     if (KeyboardGlobalHook.IsHooking)
     {
         return;
     }
     this.SetCheck(true);
     KeyboardGlobalHook.Start();
 }
Пример #2
0
 /// <summary>
 /// stop global hook
 /// </summary>
 private void StopHook()
 {
     if (!KeyboardGlobalHook.IsHooking)
     {
         return;
     }
     this.SetCheck(false);
     KeyboardGlobalHook.Stop();
 }
Пример #3
0
 private void AppMenuReset_Click(object sender, EventArgs e)
 {
     KeyboardGlobalHook.Reset();
 }