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

Method Zap.Keyboard.KeyUp

1 of 2 declarations

Releases key (character) in the Application

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Keyboard.KeyUp( 
	String Key,
	Boolean Report [Optional]
)

ZAP Utility

Zap.Key...KeyUp

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

JavaScript

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

Comment

Up "A" key

ZAP Utility

Zap.Key...KeyUp

A

Comment

Remove this step from report

ZAP Utility

Zap.Key...KeyUp

A

false


Method Zap.Keyboard.KeyUp

2 of 2 declarations

Releases key (number) in the Application

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Keyboard.KeyUp( 
	Integer Key,
	Boolean Report [Optional]
)

ZAP Utility

Zap.Key...KeyUp

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

JavaScript

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

Comment

Up "A" key, it has code 65

ZAP Utility

Zap.Key...KeyUp

65

Comment

Remove this step from report

ZAP Utility

Zap.Key...KeyUp

65

false

Contact Us

1425 Market Blvd Ste 530 - 230

Roswell, GA 30076 USA

(800) 795-3552