User Tools

Site Tools


examples

Examples

TCP/UDP/RS232 Examples

To launch a task (Script or Cuelist) the scrRunTask comand is used. In the example below the name of the task we want to launch is “ExampleTask”.

in Basic

Dim CMD As String

CMD = Chr(4)+"0"+Chr(5)+"scrRunTask"+Chr(5)+"ExampleTask"+Chr(6)

in Delphi / Pascal

var

cmd: string;

cmd := Chr(4)+'0'+Chr(5)+'scrRunTask'+Chr(5)+'ExampleTask'+Chr(6);

As result, the node send an acknowledge message.

Chr(4)1chr(5)scrRunTaskchr(5)0Chr(6)

HTTP Examples

To launch a task (Script or Cuelist) via web browser, a link to the /cgi-bin/ directory attached by the command is made. The html file must be copied in the Webservers Document directory. It is then available at http://NodeAddress/Filename.htm. The complete example file is listed below.

<html>
<head>
<title>Remote</title>
</head>
<body>
<a href="/cgi-bin/scrRunTask%05wait1" name="ExampleTask" target="anyFrame"><h1>Wailt1</h1></a>
</body>
</html>
examples.txt · Last modified: 2013/08/19 11:24 by admin