Method SystemUtil.CloseProcessByWndTitle
Closes process by window titleUsage
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);
Comment
Close process with window title "Google Chrome"