beautypg.com

Headset-select on always, Headset-select on always -10 – Clear-Com Logic-Maestro User Manual

Page 138

background image

Clear-Com Communication Systems

Eclipse Logic Maestro Instruction Manual

3 - 1 0

HEADSET-SELECT ON ALWAYS

// Forces headset-select 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()
{
PortObject D4222 = ControlMacro.GetPort("D4222");

// Create dummy crosspoint, and turn it on
CrosspointControl crosspointControl = new CrosspointControl(1022, 1022);
crosspointControl.On = true;

// Make the always-on crosspoint trigger the headset-select action
crosspointControl.Triggers(ControlActions.HeadsetSelect(D4222));

}
}
}