Command Line Interface

Description

Some applications are unable to utilize the SlinkX ActiveX control, but are able to execute a command-line application. Examples of these include:

For this reason, we have created a simple command-line interface called slcmd which uses Slinkeserv and mimics much of the functionality of the SlinkX ActiveX control. With slcmd, you can

Note that slcmd is not able to receive messages from slinkeserv, however.

Command Syntax

where command and its arguments are one of the following:

These commands are identical to the AddDevice, AddDeviceText, DeleteDevice, and SendEx methods described in the SlinkX documentation, so their parameters will not be described here.

Examples

The following sequence, would add an IR device called tv based on a Sony TV device file, connect it to all 8 IR ports, and send a power_on command to it.

slcmd adddev tv c:\progra~1\nirvis\device~1\sony\tv.cde 1 1 4080

slcmd send tv:power_on

Note that subsequent commands will not need to add the device again, e.g. changing the channel:

slcmd send "tv:1 tv:2 tv:enter"