Beispiel #1
0
 public void Handle()
 {
     foreach (var key in _keyCodes)
     {
         KeyboardInterface.SendKeyUp(key);
     }
 }
Beispiel #2
0
 public void Handle()
 {
     foreach (var key in _keyCodes)
     {
         KeyboardInterface.SendKeyPress(key);
         Thread.Sleep(_delay);
     }
 }
Beispiel #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);
            }
        }
Beispiel #4
0
 public void Handle()
 {
     KeyboardInterface.SendKeyChord(_keyCodes);
 }
Beispiel #5
0
 public void Handle()
 {
     KeyboardInterface.SendKeyPress(_keyCode);
 }