Function: app.ExecuteScript
Executes a script.
Syntax
{
"method": "app.ExecuteScript",
"params": {
"file": "...",
"params": "...",
},
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}AdvFuture<bool> ExecuteScript( AdvString file, std::optional<AdvObject> params = std::nullopt );public Task<bool> ExecuteScriptAsync(string file, IDictionary<string, object?>? @params = null, CancellationToken ct = default);executeScript(file: string, params?: Map<string, Object> | undefined): Promise<boolean>;Parameters
file : string
Name of the .wgt or .js file relative to scripts folder.
params : value{} optional
Parameters for the script.
Result : bool
True, if script file was found.
Remarks
This method requires API control access.