DigishowScriptable {

    property int device: -1;

    function onStart() {

        device = utilities.tcpOpen('127.0.0.1', 12345)
        alert(device != -1 ? "Device Connected" : "Device Not Connected !\r\nEdit connection settings in the attached script file.");
    }

    function onStop() {

        utilities.tcpClose(device);
    }
}
