コード例 #1
0
ファイル: HotKey.cs プロジェクト: khebbie/khebbiekey
        /// <summary>
        /// Creates a new HotKeyManager object.
        /// </summary>
        public HotKeyManager()
        {
            // setup the control that recieves the hotkey msg.
            m_ctrl            = new HotKeyControl();
            m_ctrl.HotKeyHit += new HotKeyEventHandler(HotKeyHitHandler);

            // init the collection.
            m_keys = new HotKeyCollection();
        }
コード例 #2
0
 public override void Load()
 {
     Instance  = this;
     IsRunning = false;
     if (!Main.dedServ)
     {
         NormalStringHeight = Main.fontMouseText.MeasureString("hi").Y;
         HotKeyControl.RegisterKey();
     }
 }
コード例 #3
0
 public async Task WithKeys()
 {
     using var target = new HotKeyControl
           {
               HotKey = new HotKey
               {
                   Shift = true,
                   Key   = "A"
               }
           };
     await Verifier.Verify(target);
 }
コード例 #4
0
 public async Task Default()
 {
     using var target = new HotKeyControl();
     await Verify(target);
 }
コード例 #5
0
 public override void ProcessTriggers(TriggersSet triggersSet)
 {
     HotKeyControl.PressKey(triggersSet);
 }
コード例 #6
0
ファイル: HotKey.cs プロジェクト: jamelouis/LightDesktop
        /// <summary>
        /// Creates a new HotKeyManager object.
        /// </summary>
        public HotKeyManager()
        {
            // setup the control that recieves the hotkey msg.
            m_ctrl = new HotKeyControl();
            m_ctrl.HotKeyHit += new HotKeyEventHandler(HotKeyHitHandler);

            // init the collection.
            m_keys = new HotKeyCollection();
        }