key, keydown, keyboard, click, input, scriptless, script-less, scripted, step, view, stepview

Method KeyDown

1 of 2 declarations

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

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

Application

KeyDown

A

true

Key

Report

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

Application

KeyDown

A

Comment

Remove this step from report

Application

KeyDown

A

false


Method KeyDown

2 of 2 declarations

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

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

Application

KeyDown

65

true

Key

Report

Parameters

Key

Type: Integer

Number of the key to press (i.e. 13 = Enter, 40 = Down Arrow)

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 65 'A
Application("Demo").View("DemoView").Object("DemoObject2").Click
Application("Demo").KeyUp 65 'A

JavaScript

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

Comment

Down "A" key, it has code 65

Application

KeyDown

65

Comment

Remove this step from report

Application

KeyDown

65

false

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227