public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key)
 {
     container.Focus();
     keyboard.PressSpecialKey(key, container);
 }
Exemplo n.º 2
0
 public static Input KeyboardInput(int type, KeyboardInput keyboardInput)
 {
     return new Input {type = type, ki = keyboardInput};
 }
Exemplo n.º 3
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return Input.KeyboardInput(WindowsConstants.INPUT_KEYBOARD, keyboardInput);
 }
Exemplo n.º 4
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return new Input {type = WindowsConstants.INPUT_KEYBOARD, ki = keyboardInput};
 }
Exemplo n.º 5
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return(Input.KeyboardInput(WindowsConstants.INPUT_KEYBOARD, keyboardInput));
 }
Exemplo n.º 6
0
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyUp((short) key, true);
     heldKeys.Remove(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Perform keyboard action on this UIItem
 /// </summary>
 /// <param name="key"></param>
 public virtual void KeyIn(KeyboardInput.SpecialKeys key)
 {
     actionListener.ActionPerforming(this);
     keyboard.PressSpecialKey(key, actionListener);
 }
Exemplo n.º 8
0
 private void Send(KeyboardInput.SpecialKeys key, bool specialKey)
 {
     Press((short) key, specialKey);
 }
Exemplo n.º 9
0
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key)
 {
     LeaveKey(key, new NullActionListener());
 }
Exemplo n.º 10
0
 private static Input GetInputFor(short character, KeyboardInput.KeyUpDown keyUpOrDown)
 {
     return Input.Keyboard(new KeyboardInput(character, keyUpOrDown, GetMessageExtraInfo()));
 }
Exemplo n.º 11
0
 private static KeyboardInput.KeyUpDown GetSpecialKeyCode(bool specialKey, KeyboardInput.KeyUpDown key)
 {
     if (specialKey && scanCodeDependent.Contains((KeyboardInput.SpecialKeys) key)) key |= KeyboardInput.KeyUpDown.KEYEVENTF_EXTENDEDKEY;
     return key;
 }
Exemplo n.º 12
0
 internal virtual void HoldKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyDown((short) key, true);
     heldKeys.Add(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Exemplo n.º 13
0
 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     Send(key, true);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Exemplo n.º 14
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return(new Input {
         type = WindowsConstants.INPUT_KEYBOARD, ki = keyboardInput
     });
 }
Exemplo n.º 15
0
 private void PressKey(KeyboardInput.SpecialKeys key)
 {
     _window.KeyIn(key);
     _window.WaitWhileBusy();
 }
Exemplo n.º 16
0
 public static Input KeyboardInput(int type, KeyboardInput keyboardInput)
 {
     return(new Input {
         type = type, ki = keyboardInput
     });
 }