Mouse and Keyboard

Send Keystrokes

This activity sends text to application as a series of keyboard characters typed one at a time (simulates human behavior).
Fill in the application custom internal name. Choose delay between characters (in milliseconds, 1ms=1/1000s).

There is Send Keys Type parameter in a Properties window. In most cases there is no need to change anything (let the Default option stay). Choose SendWait option when the scenario should wait for any processes started by the keystroke before moving to the next activity.

send_keys_app

Send Keystrokes activity allows you to send to application not only a simple text (in double quotation marks) or variable, but also special characters (that are not displayed when you press a key and represent rather actions then characters - such as Enter key, arrow keys, Home key, Del key and so on). The special codes are in following table.

send_keys_app2

To specify repeating keys put number after key, e.g. {BS 6} means: press Backspace key 6 times, {RIGHT 2} means: press right arrow key 2 times.

Using this activity you can send key combinations as well, see examples in the table below.

send_keys_app3

As plus sign (+), caret (^), tilde (~), percent sign (%) have special meaning in Send Keystrokes activity, to send such sign you have to enclose it within braces, e.g. {%}.

Parameter nameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Application nameStringInputcustom internal name for application in which the action is taken, in order to use in Wizlink®
DelayInt32Inputwaiting time between sending characters (in milliseconds)
DisplayNameLiteralInputyou can change the name of activity for greater clarity of the scenario
KeystrokesStringInputstring of characters to be sent
Send Keys TypeDropdownInputselect the appropriate option from the dropdown list
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities