Go to documentation repository
Page History
...
Macro of setting to zero can be run manually by main menu of the Intellect software package or automatically in any specified time (use the Events table on the settings panel of the Macro object where the previously configured Time zone object is to be specified). Detailed information about using the Macro and Time zone objects is given in the Administrator's Guide document).
Example 3. Setting the text for displaying on the map
It is possible to select the type of Text displaying while attaching object to the map (see Administrator Guide, the Attaching objects to the layers of interactive map section). Also the script on the JScript language can be used for changing the displayed text.
Example. The Text type of display on the map is selected for the Camera 1. It's required to display value of the MyVar value read from the C:\test.ini file on the map and debug window while processing the Macro 1.
Code Block | ||
---|---|---|
| ||
if(Event.SourceType == "MACRO" && Event.Action == "RUN")
{
var result = parseInt(ReadIni("MyVar","C:\\test.ini"));
result += 2;
NotifyEventStr("CAM","1","ANALOG_PARAMS","text<Значение переменной = \n" + result + ">, blink_state<1>");
DebugLogString(result);
}
|