Beispiel #1
0
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == WM_HOTKEY)
                {
                   HotKeyEventArgs e = new HotKeyEventArgs(m.LParam);
                   HotKeyManager.OnHotKeyPressed(e);
                }

                base.WndProc(ref m);
            }
Beispiel #2
0
 private static void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
 {
     context.Send(o => TakeSnapshot(), null);
 }
Beispiel #3
0
 private static void OnHotKeyPressed(HotKeyEventArgs e)
 {
     if (HotKeyManager.HotKeyPressed != null)
      {
     HotKeyManager.HotKeyPressed(null, e);
      }
 }