Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Method KeyDown

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

Usage

Function KeyDown( 
        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");

Documentation Categories

ZAPTEST

FARM

LOAD