Arguments for key pressed event which contain information about pressed hot key.
Inheritance: System.EventArgs
        private void OnKeyPressed(object sender, GlobalHotKey.KeyPressedEventArgs e)
        {
            if (!Window.IsValidTarget())
            {
                return;
            }

            Log.Message("Window.GetActiveWindowTitle(): " + Window.GetActiveWindowTitle());
            Log.Message("Window.IsValidTarget(): " + Window.IsValidTarget());

            if (!Settings.SpamKeys.ContainsKey(e.HotKey.Key))
            {
                return;
            }

            UseSkill(Settings.SpamKeys[e.HotKey.Key]);
        }
Exemple #2
0
 private void HotKeyManagerPressed(object sender, KeyPressedEventArgs e)
 {
     tbAlias.Clear();
     this.ShowForm();
     this.TopLevel = true;
 }
Exemple #3
0
 private void HkManagerOnKeyPressed(object sender, KeyPressedEventArgs e)
 {
     _menuStrip.Show();
     if (_locationOfIcon != null)
         _menuStrip.Location = (Point)_locationOfIcon;
     _menuStrip.Focus();
 }
Exemple #4
0
 private void Manager_KeyPressed(object sender, KeyPressedEventArgs e)
 {
     if (e.HotKey != null)
         _actions[e.HotKey]();
 }
 private static void HotKeyManagerPressed(object sender, KeyPressedEventArgs e)
 {
     var hotkey = e.HotKey;
     HotKeyCallBackHandler callback;
     if (_keymap.TryGetValue(hotkey, out callback))
         callback();
 }
Exemple #6
0
 private void onKeyPressed(KeyPressedEventArgs e)
 {
     var handler = KeyPressed;
     if (handler != null)
         handler(this, e);
 }