IKeyboard Methods
Last updated
Last updated
Triggers a KEY_DOWN event on the subject under test and waits for the KeyDownDelay.
Syntax:
Triggers a combination of Down(Keys) and Up(Keys) with a wait time set to the global key down delay.
Syntax:
Puts all keys defined in keysToHold in the specified sequence in "down" state, triggers a combination of Down(Keys) and Up(Keys) with a wait time set to the global key down delay and then releases the keys in keysToHold.
Syntax:
Simulates text typing by converting a given string to a sequence of KEY_DOWN and KEY_UP events.
Syntax:
Triggers a KEY_UP event on the subject under test
Syntax:
Parameter
Description
key
Type: Keys
Value of the key to hold
Parameter
Description
key
Type: Keys
Value of the key to hold
Parameter
Description
keyToPress
Type: Keys
Single key that should be pressed while the keysToHold are in down state
[keysToHold]
Type: Keys[ ]
Keys that should be hold while the keyToPress is pressed
Parameter
Description
textToType
Type: String
The text that should be typed on the subject under test
Parameter
Description
key
Type: Keys
Value of the key to release