Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
The GetParam method returns the value of the specified parameter of the system object for the MsgObject or Event object.
Syntax for method invocation:
function GetParam(param: String) : String
Method arguments:
- param is a required argument. It corresponds to the parameter name of the system object for which the MsgObject object (or the Event static object) was created. Possible values: String type, range is limited by the parameters available for the given object.
Note
If the object has no parameter with this name, then the method returns an empty string
Example. When any event from any camera is registered, check from which computer the event comes. If the computer has the WS3 name, create the event copy in which the computer’s name is “Computer”.
if (Event.SourceType == "CAM") { var msg = Event.Clone(); if (msg.GetParam("slave_id") == "WS3") { msg.SetParam("slave_id", "Computer"); NotifyEvent(msg); } }
Overview
Content Tools