beautypg.com

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

Page 137

background image

Clear-Com Communication Systems
Eclipse Logic Maestro Instruction Manual

3 - 9

HEADSET-SELECT ON

// When control HS-ON is activated 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()
{
// When control HS-ON is activated forces headset-select on for panel D4222

// Fetch the elements we need.
ControlMacro HSON = ControlMacro.GetControl("HS-ON");
PortObject D4222 = ControlMacro.GetPort("D4222");

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