Release Key Action

Declaration

<AMKEYUP SHIFT="yes/no" CTRL="yes/no" ALTGR="yes/no" ALT="yes/no" WINKEY="yes/no">

See Also

Release Key Action-Setting Properties, Hold Down Key Action, Send Keystrokes Action, Press Action

Description

Releases the specified key(s) that were previously held down using the "Hold Down Key" action.

NOTE: In 95% of cases this action is not needed, Send Keystrokes can hold down/release keystrokes for simple key combinations such as ALT-f.  This action is only needed when a key or keys need to be held down during a mouse operation or across multiple steps. Otherwise the "Send Keystrokes" <AMSENDKEYS> action should be used as it supports holding down of special keys also.

Practical Usage

Generally the "Release Key" <AMKEYUP> action is used in conjunction with the Hold Down Key Action <AMKEYDOWN> action to release keys that were previously held-down spanning multiple steps. For example if the application being automated requires that the ALT key be held down while mouse clicks are taking place that task could begin with a Hold Down Key Action <AMKEYDOWN> action, followed by the Mouse <AMMOUSE> action steps, finally followed by this Release Key Action <AMKEYUP> step.

Parameters

General Tab

Shift

Yes/No, Optional Default NO
MARKUP: SHIFT="YES"

Specifies that the SHIFT key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Ctrl

Yes/No, Optional Default NO
MARKUP: CTRL="YES"

Specifies that the CTRL key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

AltGr

Yes/No, Optional Default NO
MARKUP: ALTGR="YES"

Specifies that the ALTGR (found on many international keyboard layouts) key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Alt

Yes/No, Optional Default NO
MARKUP: ALT="YES"

Specifies that the ALT key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Winkey

Yes/No, Optional Default NO
MARKUP: WINKEY="YES"

Specifies that the WINKEY (the key with the Microsoft Windows logo on it) key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Notes

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMKEYUP SHIFT="YES">

<AMKEYUP SHIFT="YES" CTRL="YES" ALTGR="YES">