Method KeyDown

Presses and holds any single key (number) in the Application

Usage

Function KeyDown( 
        String Key,
        Boolean Report [Optional]
)

Application

ZAP Object step

KeyDown

A

true

String Key

Boolean Report [Optional]

Parameters

Key

Type: String

Key (character) to press

Report (Optional)

Type: Boolean

Default value: true

Report this step to results

Returns

No return value

Example

VBScript

Application("Demo").View("DemoView").Object("DemoObject1").Click
Application("Demo").KeyDown "A"
Application("Demo").View("DemoView").Object("DemoObject2").Click
Application("Demo").KeyUp "A"

JavaScript

Application("Demo").View("DemoView").Object("DemoObject1").Click();
Application("Demo").KeyDown("A");
Application("Demo").View("DemoView").Object("DemoObject2").Click();
Application("Demo").KeyUp("A");

Comment

Down "A" key

Script-Less next step

Application

ZAP Object step

KeyDown

A

Script-Less next step

Comment

Remove this step from report

Script-Less next step

Application

ZAP Object step

KeyDown

A

false