Previous Topic

Next Topic

Book Contents

Book Index

SendKeys

The SendKeys action type is very useful, as it can send keystrokes to another application. It will send any characters located in Parameter1.

First of all, SendKeys can send any normal keystroke to an application. If you want to type text, you can easily do that by just typing characters into Parameter1. In addition it can also send special keystrokes, such as F-keys, ALT, SHIFT and CTRL modified keys.

The table below specify the key codes that can be repeated. When you for example see that the key code is {LEFT}, this will move the cursor left once. You can specify how many time each key should be inserted by suffixing a number, like this; {LEFT 9}, which move thcursor left 9 times.

Code

Description

{BACKSPACE}, {BKSP} or {BS}

Backspace

{BREAK}

Break or cancel

{CAPS}

Toggle Caps Lock

{DELETE}

Delete

{INSERT}

Insert

{DOWN}

The down arrow button

{UP}

The up arrow button

{HOME}

Home

{END}

End

{ENTER}

Enter

{LEFT}

Left arrow button

{RIGHT}

Right arrow button

{PGUP}

Page up

{PGDN}

Page down

{NUMLOCK}

Toggle numlock key

{HELP}

Help

{PRTSCR}

Print Screen button

{SCROLL}

Toggle Scroll Lock button

{TAB}

Tabulator key

{F1} to {Fnn}

Any Function key

Special key codes

Code

Description

{PAUSE n}

Pause for n seconds. This very useful if you need to give the application you command, some time to perform some action, before issuing another keystroke.

Special shorthand characters that can be used to indicate a key combination:

Character

Description

~

Enter, same as {ENTER}.

+

Shift. For example +a will insert an uppercase A.

^

Control, for example ^A will insert the key combination CTRL+A.

%

Alt, for example the %f will insert the key combination ALT+F.

[

Group start, see Group End

]

Group end. You can group characters together by enclosing them in square brackets.

See Also

The Action element

LaunchApplication

NotesAgent

NotesFormula

WaitForWindowTitle

WaitForClass

WaitForModule

WaitForWindowDialog