コード例 #1
0
 private void GrabColor_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!hotkey.Unregiser())
     {
         Console.WriteLine("Hotkey failed to unregister!");
     }
 }
コード例 #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!ghk.Unregiser())
     {
         MessageBox.Show("Hotkey failed to unregister!");
     }
 }
コード例 #3
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (ClickerThread != null)
     {
         ClickerThread.Abort();
     }
     ghk.Unregiser();
     Application.Exit();
 }
コード例 #4
0
ファイル: MacroForm.cs プロジェクト: yogeeshanaik/HandyTools
 private void HotkeyActivated_CheckedChanged(object sender, EventArgs e)
 {
     if (HotkeyActivated.Checked)
     {
         if (hotkeymessage == false)
         {
             MessageBox.Show(@"The Global Hotkey for this application is 'ESC'. It will stop the recording of keyboard and mouse movements if activated. If you are playing the movements pressing it will stop the playback process. Using this you have the ability to forever loop the movements and drive your friend crazy! Have fun :)");
             hotkeymessage = true;
         }
         ForeverLoop.Visible = true;
         ghk.Register();
     }
     else
     {
         if (ForeverLoop.Checked)
         {
             ForeverLoop.Checked = false;
             MessageBox.Show(@"Forever Loop was on. Deactivated it.", @"Deactivated Forever Loop", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         ForeverLoop.Visible = false;
         ghk.Unregiser();
     }
 }
コード例 #5
0
 private void UIForm2_FormClosing(object sender, FormClosingEventArgs e)
 {
     ghk.Unregiser();
     Utils.Log("** Global hotkey unregistered", Utils.Colour("Red"));
 }