Esempio n. 1
0
 public void AddKey(WindowsAPI.VirtualKeyCode keyCode)
 {
     AddKeyDown(keyCode);
       AddKeyUp(keyCode);
 }
Esempio n. 2
0
        private void AddKeyUp(WindowsAPI.VirtualKeyCode keyCode)
        {
            var key = new WindowsAPI.Input {
            Type = WindowsAPI.InputType.Keyboard,
            Data = {
              Keyboard = new WindowsAPI.KeyboardInput {
            KeyCode = (UInt16) keyCode,
            Scan = 0,
            Flags = (uint)WindowsAPI.KeyEvent.KeyUp,
            Time = 0,
            ExtraInfo = IntPtr.Zero
              }
            }
              };

              _input.Add(key);
        }
Esempio n. 3
0
 public KeyInput(ApplicationController controller, WindowsAPI.VirtualKeyCode keyCode)
     : base(controller, ActionType.SendKey)
 {
     AddKey(keyCode);
 }
Esempio n. 4
0
 public ApplicationInput AddKey(WindowsAPI.VirtualKeyCode keyCode)
 {
     var key = new KeyInput(Controller, keyCode);
       if (!key.Empty())
     Append(key);
       return this;
 }