Simulate Keyboard Actions

Simulate typing text, including special keys (e.g. [ENTER]) and chords (e.g. [CONTROL+a]).

CommandExamplesExplanation
type <text>type "Hello world!"Types the text "Hello world!" into whatever control on the user interface has focus.
type "Hello world! [ENTER] Second line."You can inject "special keys" into the sequence of typed characters by adding them, set off in square brackets, to the keys you can type. Common examples include [CONTROL], [SHIFT], [ALT], [UP], [DOWN], and [SPACE]. 
type <chord>type [CONTROL+a]Simulates typing a chord, comprised of one or more keys. The example at left could be used to select all of the text in a textarea, provided that control has focus.