Exemple #1
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return Input.KeyboardInput(WindowsConstants.INPUT_KEYBOARD, keyboardInput);
 }
 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key)
 {
     container.Focus();
     keyboard.PressSpecialKey(key, container);
 }
Exemple #3
0
 public static Input Keyboard(KeyboardInput keyboardInput)
 {
     return new Input {type = WindowsConstants.INPUT_KEYBOARD, ki = keyboardInput};
 }
Exemple #4
0
 public static Input KeyboardInput(int type, KeyboardInput keyboardInput)
 {
     return new Input {type = type, ki = keyboardInput};
 }
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyUp((short) key, true);
     heldKeys.Remove(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
Exemple #6
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);
 }
 private void Send(KeyboardInput.SpecialKeys key, bool specialKey)
 {
     Press((short) key, specialKey);
 }
 public virtual void LeaveKey(KeyboardInput.SpecialKeys key)
 {
     LeaveKey(key, new NullActionListener());
 }
 private static KeyboardInput.KeyUpDown GetSpecialKeyCode(bool specialKey, KeyboardInput.KeyUpDown key)
 {
     if (specialKey && scanCodeDependent.Contains((KeyboardInput.SpecialKeys) key)) key |= KeyboardInput.KeyUpDown.KEYEVENTF_EXTENDEDKEY;
     return key;
 }
 private static Input GetInputFor(short character, KeyboardInput.KeyUpDown keyUpOrDown)
 {
     return Input.Keyboard(new KeyboardInput(character, keyUpOrDown, GetMessageExtraInfo()));
 }
 internal virtual void HoldKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyDown((short) key, true);
     heldKeys.Add(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     Send(key, true);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
 private void PressKey(KeyboardInput.SpecialKeys key)
 {
     _window.KeyIn(key);
     _window.WaitWhileBusy();
 }