Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //加载命令
            cmdManager.reLoadCmds(null);

            //注册热键
            RegisterHotKeyClass _RegisKey = new RegisterHotKeyClass();

            _RegisKey.Keys         = Keys.C;
            _RegisKey.ModKey       = RegisterHotKeyClass.MODKEY.MOD_ALT;
            _RegisKey.WindowHandle = this.Handle;
            _RegisKey.HotKey      += new RegisterHotKeyClass.HotKeyPass(_Regis_HotKey);
            _RegisKey.StarHotKey();
        }