XenoGuard Documentation

Key Down

Actions » Windows » Keyboard » Key Down 

The action Key Down detects a simulated keystroke when the key is pressed.

[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. In the Keyboard node, select the Key Down action.


The action has the following input parameters:

name Description
Specifies the key to be pressed down.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Wait Time [ms]
Specifies the time interval in milliseconds after pressing the key down.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Example 1 (Access the Calculator in the search box):

This example stores the image of the Calculator and the Windows button in two local variables, CalcAppIcon and WindowsButton, respectivelyBoth have Image as their data type. The Windows button is then clicked after it has been detected on the screen and keystrokes the letter "C" to search for the Calculator application. Once the Calculator icon is located on the screen, it is selected by the mouse cursor and opened using the "Enter" keystroke.

See other keyboard operations:

Write Character
Write Text
Key Press
Key Up