Loudspeaker-cut on, Loudspeaker-cut on -11 – Clear-Com Logic-Maestro User Manual

Page 139

Advertising
background image

Clear-Com Communication Systems
Eclipse Logic Maestro Instruction Manual

3 - 1 1

LOUDSPEAKER-CUT ON

// When control LS-CT is activated forces loudspeaker cut on for panel D4222

using System;
using ClearCom.ScriptHost;
using ClearCom.ScriptLibrary;
using ClearCom.Entities;
using EMS.MapClient;
using EMS.MapClient.Tables;
using EMS.MapClient.Tables.Actions;
using Shared.Enums;

namespace CustomControlMacros
{
public class CustomMacro : ScriptBase
{
public override void OnUserStart()
{
// Fetch the elements we need.
ControlMacro HSON = ControlMacro.GetControl("LS-CT");
PortObject D4222 = ControlMacro.GetPort("D4222");

HSON.Triggers(ControlActions.CutLoudspeaker(D4222));
}
}
}

Advertising