Usage
Function ZAP.SystemUtil.CloseProcessByWndTitle (
String Title,
Boolean BRegularExpression [Optional],
Boolean CloseAll [Optional]
)
ZAP Utility
Sys...ByWndTitle
Google Chrome
false
false
String ProcessName
BRegularExpression
Boolean CloseAll
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);
ZAP Utility
Sys...ByWndTitle
Google Chrome
Comment
Close all processes with given parameter
ZAP Utility
Sys...ByWndTitle
Google Chrome
false
true

Comment
Close process with window title "Google Chrome"