12.4.34.1   SENDCMD

Description:   Send macro commands to other ViewDAQs or View clients.  

Syntax:

 Tcl:             SENDCMD dspname:daqname=<keymacro>string

 JScript         SENDCMD("dspname:daqname=<keymacro>string");

 VBScript       SENDCMD "dspname:daqname=<keymacro>string"  

 

Argument:     "Display_Group_Name:ViewDAQ_Name=<keymacro><keymacro2>"

 

See Also:      Pushbutton Key Macros, Display Group Name, <SENDCMD>, SENDVDO, SENDPTZ, <DIALOG>VIDEO, GOTO URL=vdo, <GOTO>URL=vdo,<GOTO>VIDEO,<GOTO>WEBCTRL,
17.2.3.1 Video Popup Key Macro <GOTO>URL

 

The SENDCMD feature also allows users to control local ViewDAQs using Scripts, both Local Scripts and Global scripts. Sends keymacro commands to all ViewDAQs with the Display Group Name and the ViewDAQ Name, set as dspname:daqname.

The ViewDAQ Name (daqname) is optional.  Will send keymacro commands to all ViewDAQs with dspname as the Display Group Name if daqname is omitted.

To send macro to all ViewDAQs, set dspname:daqname as an empty string (e.g., SENDCMD=<macro>).

 

Examples:       

// JScript - DLOGlist.js

var groupnumber

groupnumber = GETVAL("group");

SENDCMD("main:untitled=<GOTO>DLOGTRD=" + groupnumber);