示例#1
0
 protected static void OnHotKeyPressed(HotKeyEventArgs e)
 {
     if (HotKeyInternals.HotKeyPressed != null)
     {
         HotKeyInternals.HotKeyPressed(null, e);
     }
 }
 public override void Terminate()
 {
     foreach (KeyBinding binding in KeyBindings)
     {
         HotKeyInternals.InternalUnregisterHotKey(binding.id);
     }
     HotKeyInternals.HotKeyPressed -= HotKeyPressed;
     AutoType.FilterCompilePre     -= FilterCompilePre;
 }
示例#3
0
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == WM_HOTKEY)
                {
                    HotKeyEventArgs e = new HotKeyEventArgs(m.LParam);
                    HotKeyInternals.OnHotKeyPressed(e);
                }

                base.WndProc(ref m);
            }
        public override bool Initialize(IPluginHost host)
        {
            m_host     = host;
            MySequence = "";
            LoadBindings();
            HotKeyInternals.HotKeyPressed += HotKeyPressed;
            AutoType.FilterCompilePre     += FilterCompilePre;

            foreach (KeyBinding binding in KeyBindings)
            {
                binding.id = HotKeyInternals.InternalRegisterHotKey(binding.key);
            }
            return(true);
        }