Activate led on all keys to destination, Activate led on all keys to destination -2 – Clear-Com Logic-Maestro User Manual

Page 130

Advertising
background image

Clear-Com Communication Systems

Eclipse Logic Maestro Instruction Manual

3 - 2

ACTIVATE LED ON ALL KEYS TO DESTINATION

// When control LED1 is activated, any key on any panel to I2003 is illuminated red.

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 LED1 = ControlMacro.GetControl("LED1");
PortObject I2003 = ControlMacro.GetPort("I2003");

// Set up LED indications.
Action fireLed1 = ControlActions.ActivateLED(I2003, Shared.Enums.LedRate.On,

Shared.Enums.LedIndication.Red);

// Activate LEDs on.
LED1.Triggers(fireLed1);
}
}
}

Advertising