Exemple #1
0
 public void Handle()
 {
     foreach (var key in _keyCodes)
     {
         KeyboardInterface.SendKeyUp(key);
     }
 }
Exemple #2
0
 public void Handle()
 {
     foreach (var key in _keyCodes)
     {
         KeyboardInterface.SendKeyPress(key);
         Thread.Sleep(_delay);
     }
 }
Exemple #3
0
        public void Handle()
        {
            var stack = new Stack <ScanCodeShort>();

            foreach (var key in _keys)
            {
                KeyboardInterface.SendKeyDown(key);
                stack.Push(key);
            }

            Thread.Sleep(_delay);

            while (stack.Any())
            {
                var key = stack.Pop();
                KeyboardInterface.SendKeyUp(key);
            }
        }
Exemple #4
0
 public void Handle()
 {
     KeyboardInterface.SendKeyChord(_keyCodes);
 }
Exemple #5
0
 public void Handle()
 {
     KeyboardInterface.SendKeyPress(_keyCode);
 }