« Back to Product

Documentation

IPS_GetScriptContent

Require: IP-Symcon >= 3.1

 string IPS_GetScriptContent (int $ScriptID) 

Parameters

ScriptID

ID of the script

Returns

The content of the script

Description

This function returns the content of the script with the ID ScriptID. The content is read from the script file that is defined within the script object.

Warning

As a practical example for this function, it is possible to read the script in an external editor that cannot use the JSON-RPC API or other methods to access the file system.

Example

$Content = IPS_GetScriptContent($ScriptID);
Any questions?