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

Method SystemUtil.CloseProcessByWndTitle

Closes process by window title

Usage

Function ZAP.SystemUtil.CloseProcessByWndTitle (
	String Title,
	Boolean BRegularExpression [Optional],
	Boolean CloseAll [Optional]
)

Parameters

Title

Type: String

Window title

BRegularExpression (optional)

Type: Boolean

Default value: false

Option: is the title a regular expression

CloseAll (optional)

Type: Boolean

Default value: false

Option to close all processes with given parameters

Returns

No return value

Example

VBScript

Zap.SystemUtil.CloseProcessByWndTitle "Google Chrome", false, false

JavaScript

Zap.SystemUtil.CloseProcessByWndTitle("Google Chrome", false, false);

Documentation Categories

ZAPTEST

FARM

LOAD