示例#1
0
 private void VOLUME(SplusExecutionContext __context__)
 {
     __context__.SourceCodeLine = 49;
     TX__DOLLAR__.UpdateValue("VOLM" + Functions.ItoA((int)(_SplusNVRAM.I)) + "  \r");
     __context__.SourceCodeLine = 50;
     VOLUME_OUT.Value           = (ushort)(_SplusNVRAM.I);
 }
示例#2
0
 private void SENDTOQSYS(SplusExecutionContext __context__, CrestronString SMSGTOSEND)
 {
     __context__.SourceCodeLine = 147;
     TOCLIENT.UpdateValue(SMSGTOSEND);
     __context__.SourceCodeLine = 148;
     Functions.ProcessLogic( );
 }
        object IN_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 46;
                if (Functions.TestForTrue((Functions.Length(IN))))
                {
                    __context__.SourceCodeLine = 48;
                    OUT.UpdateValue(PRE + IN + SUF);
                }

                else
                {
                    __context__.SourceCodeLine = 52;
                    OUT.UpdateValue("");
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#4
0
        private void SENDLIST(SplusExecutionContext __context__)
        {
            ushort I = 0;


            __context__.SourceCodeLine = 197;
            if (Functions.TestForTrue((DEBUG.Value)))
            {
                __context__.SourceCodeLine = 198;
                Print("** SendList **\r\n");
            }

            __context__.SourceCodeLine = 200;
            TO_MODULE_AVAIALBLE_ROOMS_LIST_DATA__DOLLAR__.UpdateValue("<RoomList>");
            __context__.SourceCodeLine = 202;
            ushort __FN_FORSTART_VAL__1 = (ushort)(1);
            ushort __FN_FOREND_VAL__1   = (ushort)G_ITOTALITEMS;
            int    __FN_FORSTEP_VAL__1  = (int)1;

            for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0)  ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1)
            {
                __context__.SourceCodeLine = 204;
                TO_MODULE_AVAIALBLE_ROOMS_LIST_DATA__DOLLAR__.UpdateValue("<Room>" + "<ID>" + ITEM [I].ROOMID + "</ID>" + "<Name>" + ITEM [I].ROOMNAME + "</Name>" + "</Room>");
                __context__.SourceCodeLine = 202;
            }

            __context__.SourceCodeLine = 211;
            TO_MODULE_AVAIALBLE_ROOMS_LIST_DATA__DOLLAR__.UpdateValue("</RoomList>");
        }
示例#5
0
        object CLEAR_FIELDS_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 77;
                _SplusNVRAM.STO.UpdateValue("");
                __context__.SourceCodeLine = 78;
                _SplusNVRAM.SCC.UpdateValue("");
                __context__.SourceCodeLine = 79;
                _SplusNVRAM.SSUBJECT.UpdateValue("");
                __context__.SourceCodeLine = 80;
                _SplusNVRAM.SMESSAGE.UpdateValue("");
                __context__.SourceCodeLine = 81;
                TO_FB__DOLLAR__.UpdateValue(_SplusNVRAM.STO);
                __context__.SourceCodeLine = 82;
                CC_FB__DOLLAR__.UpdateValue(_SplusNVRAM.SCC);
                __context__.SourceCodeLine = 83;
                SUBJECT_FB__DOLLAR__.UpdateValue(_SplusNVRAM.SSUBJECT);
                __context__.SourceCodeLine = 84;
                MESSAGE_FB__DOLLAR__.UpdateValue(_SplusNVRAM.SMESSAGE);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#6
0
        private void SENDCHANNEL(SplusExecutionContext __context__, CrestronString SCHANNEL)
        {
            CrestronString SADJUSTED;

            SADJUSTED = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 10, this);


            __context__.SourceCodeLine = 130;
            if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(SCHANNEL) < MIN_CHANNEL_LEN.UshortValue))))
            {
                __context__.SourceCodeLine = 132;
                SADJUSTED.UpdateValue(PADCHANNEL(__context__, SCHANNEL));
            }

            else
            {
                __context__.SourceCodeLine = 136;
                SADJUSTED.UpdateValue(SCHANNEL);
            }

            __context__.SourceCodeLine = 139;
            if (Functions.TestForTrue((NEED_ENTER.Value)))
            {
                __context__.SourceCodeLine = 140;
                CHANNEL_OUT__DOLLAR__.UpdateValue(SADJUSTED + "!");
            }

            else
            {
                __context__.SourceCodeLine = 142;
                CHANNEL_OUT__DOLLAR__.UpdateValue(SADJUSTED);
            }
        }
        object STRING_TO_SEND_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 153;
                _SplusNVRAM.ICS            = (ushort)(0);
                __context__.SourceCodeLine = 154;
                if (Functions.TestForTrue((Functions.BoolToInt(_SplusNVRAM.ISEMAPHORE == 0))))
                {
                    __context__.SourceCodeLine = 156;
                    _SplusNVRAM.ISEMAPHORE     = (ushort)(1);
                    __context__.SourceCodeLine = 157;
                    _SplusNVRAM.STEMP.UpdateValue(STRING_TO_SEND);
                    __context__.SourceCodeLine = 158;
                    TO_DEVICE.UpdateValue(SENDSTRING(__context__, _SplusNVRAM.STEMP));
                    __context__.SourceCodeLine = 159;
                    _SplusNVRAM.ISEMAPHORE     = (ushort)(0);
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
        object SERIALIZED_TIME_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 179;
                if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(SERIALIZED_TIME) == 7))))
                {
                    __context__.SourceCodeLine = 181;
                    XML_FORMATTED_TIME.UpdateValue("0" + SERIALIZED_TIME);
                }

                else
                {
                    __context__.SourceCodeLine = 183;
                    if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(SERIALIZED_TIME) == 8))))
                    {
                        __context__.SourceCodeLine = 185;
                        XML_FORMATTED_TIME.UpdateValue(SERIALIZED_TIME);
                    }
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
        public void MYLIGHTHANDLER(object __sender__ /*HueLights.HueLight SENDER */, EventArgs ARGS)
        {
            HueLight SENDER = (HueLight )__sender__;

            try
            {
                SplusExecutionContext __context__ = SplusSimplSharpDelegateThreadStartCode();

                __context__.SourceCodeLine = 114;
                if (Functions.TestForTrue((MYLIGHT.Reachable)))
                {
                    __context__.SourceCodeLine = 116;
                    LOADONLINE.Value           = (ushort)(MYLIGHT.BulbOnline);
                    __context__.SourceCodeLine = 117;
                    LOADISON.Value             = (ushort)(MYLIGHT.BulbIsOn);
                    __context__.SourceCodeLine = 118;
                    LIGHTTYPE.UpdateValue(MYLIGHT.BulbType);
                    __context__.SourceCodeLine = 119;
                    BRIOUT.Value = (ushort)(MYLIGHT.BulbBri);
                    __context__.SourceCodeLine = 120;
                    LOADREACHABLE.Value        = (ushort)(MYLIGHT.Reachable);
                    __context__.SourceCodeLine = 121;
                    HUEOUT.Value = (ushort)(MYLIGHT.BulbHue);
                    __context__.SourceCodeLine = 122;
                    SATOUT.Value = (ushort)(MYLIGHT.BulbSat);
                }
            }
            finally { ObjectFinallyHandler(); }
        }
示例#10
0
        object INDECIMAL_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 101;
                if (Functions.TestForTrue((Functions.BoolToInt(OUTPUT.Value > 0))))
                {
                    __context__.SourceCodeLine = 103;
                    TX__DOLLAR__.UpdateValue(Functions.ItoA((int)(INDECIMAL.UshortValue)) + "*" + Functions.ItoA((int)(OUTPUT.Value)) + ROUTETYPE);
                }

                else
                {
                    __context__.SourceCodeLine = 107;
                    TX__DOLLAR__.UpdateValue(Functions.ItoA((int)(INDECIMAL.UshortValue)) + "!");
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#11
0
 private void SENDRESPONSE(SplusExecutionContext __context__, ushort INDEX, ushort TYPE, CrestronString RESPONSE)
 {
     __context__.SourceCodeLine = 317;
     RESPONSEID.Value           = (ushort)(INDEX);
     __context__.SourceCodeLine = 319;
     RESPONSE__DOLLAR__.UpdateValue("/" + Functions.Chr((int)((Byte(STOREDCOMMANDSTRING, (int)(5)) | 128))) + Functions.Chr((int)(Byte(STOREDCOMMANDSTRING, (int)((5 + 1))))) + Functions.Chr((int)(TYPE)) + RESPONSE + "\\");
     __context__.SourceCodeLine = 320;
     RESPONSEID.Value           = (ushort)(0);
 }
示例#12
0
        object TEXT__DOLLAR___OnChange_14(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 162;
                if (Functions.TestForTrue((Functions.BoolToInt(IFLAG2 == 0))))
                {
                    __context__.SourceCodeLine = 164;
                    IFLAG2 = (ushort)(1);
                    __context__.SourceCodeLine = 165;
                    if (Functions.TestForTrue((Functions.BoolToInt(IINCOMINGTEXT == 1))))
                    {
                        __context__.SourceCodeLine = 167;
                        SNUM1.UpdateValue(TEXT__DOLLAR__);
                        __context__.SourceCodeLine = 168;
                        NUM_1_FB__DOLLAR__.UpdateValue(SNUM1);
                    }

                    else
                    {
                        __context__.SourceCodeLine = 170;
                        if (Functions.TestForTrue((Functions.BoolToInt(IINCOMINGTEXT == 2))))
                        {
                            __context__.SourceCodeLine = 172;
                            SNUM2.UpdateValue(TEXT__DOLLAR__);
                            __context__.SourceCodeLine = 173;
                            NUM_2_FB__DOLLAR__.UpdateValue(SNUM2);
                        }

                        else
                        {
                            __context__.SourceCodeLine = 175;
                            if (Functions.TestForTrue((Functions.BoolToInt(IINCOMINGTEXT == 3))))
                            {
                                __context__.SourceCodeLine = 177;
                                SDIRECTORYNAME.UpdateValue(TEXT__DOLLAR__);
                                __context__.SourceCodeLine = 178;
                                DIRECTORY_NAME_FB__DOLLAR__.UpdateValue(SDIRECTORYNAME);
                            }
                        }
                    }

                    __context__.SourceCodeLine = 180;
                    IFLAG2 = (ushort)(0);
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#13
0
        object GET_LIST_USING_LOCATION_OnPush_2(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 351;
                if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.Not(REQUEST_ACTIVE_FB.Value)) && Functions.TestForTrue(Functions.Not(PROCESSING_DATA_FB.Value)))))))
                {
                    __context__.SourceCodeLine = 353;
                    G_SREQUESTID.UpdateValue("AvailableRooms" + Functions.ItoA((int)(Functions.GetHSeconds())));
                    __context__.SourceCodeLine = 355;
                    if (Functions.TestForTrue((REQUIRE_LOCATION_FILTER.Value)))
                    {
                        __context__.SourceCodeLine = 357;
                        if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(LOCATION_FILTER__DOLLAR__) > 0))))
                        {
                            __context__.SourceCodeLine = 359;
                            MODULE_BUSY_FB.Value       = (ushort)(1);
                            __context__.SourceCodeLine = 361;
                            REQUEST_ACTIVE_FB.Value    = (ushort)(1);
                            __context__.SourceCodeLine = 363;
                            TO_RV_ROOMLISTQUERY__DOLLAR__.UpdateValue("<RequestRoomList>" + "<RequestID>" + G_SREQUESTID + "</RequestID>" + "<Property>Location</Property>" + "<Value>" + LOCATION_FILTER__DOLLAR__ + "</Value>" + "</RequestRoomList>");
                        }

                        else
                        {
                            __context__.SourceCodeLine    = 371;
                            LOCATION_FILTER_MISSING.Value = (ushort)(1);
                            __context__.SourceCodeLine    = 372;
                            LOCATION_FILTER_MISSING.Value = (ushort)(0);
                        }
                    }

                    else
                    {
                        __context__.SourceCodeLine = 377;
                        MODULE_BUSY_FB.Value       = (ushort)(1);
                        __context__.SourceCodeLine = 379;
                        REQUEST_ACTIVE_FB.Value    = (ushort)(1);
                        __context__.SourceCodeLine = 381;
                        TO_RV_ROOMLISTQUERY__DOLLAR__.UpdateValue("<RequestRoomList>" + "<RequestID>" + G_SREQUESTID + "</RequestID>" + "<Property>Location</Property>" + "<Value>" + LOCATION_FILTER__DOLLAR__ + "</Value>" + "</RequestRoomList>");
                    }
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#14
0
        object FREQ_UP_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 16;
                TX__DOLLAR__.UpdateValue("TFANUP\u000D");
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#15
0
        public void MYONLINEHANDLER(object __sender__ /*HueLights.HueRoom SENDER */, EventArgs ARGS)
        {
            HueRoom SENDER = (HueRoom )__sender__;
            ushort  I      = 0;

            try
            {
                SplusExecutionContext __context__ = SplusSimplSharpDelegateThreadStartCode();

                __context__.SourceCodeLine = 178;
                if (Functions.TestForTrue((Functions.BoolToInt(SENDER == MYROOM))))
                {
                    __context__.SourceCodeLine = 180;
                    ROOMONLINE.Value           = (ushort)(MYROOM.RoomOnline);
                    __context__.SourceCodeLine = 181;
                    SCENESNUM.Value            = (ushort)(MYROOM.SceneNum);
                    __context__.SourceCodeLine = 182;
                    RMCLASS.UpdateValue(MYROOM.RoomClass);
                    __context__.SourceCodeLine = 183;
                    ushort __FN_FORSTART_VAL__1 = (ushort)(1);
                    ushort __FN_FOREND_VAL__1   = (ushort)SCENESNUM.Value;
                    int    __FN_FORSTEP_VAL__1  = (int)1;
                    for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0)  ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1)
                    {
                        __context__.SourceCodeLine = 185;
                        ROOMSCENENAME [I].UpdateValue(MYROOM.SceneName [I]);
                        __context__.SourceCodeLine = 183;
                    }
                }

                __context__.SourceCodeLine = 188;
                MYROOM.GetRoom( );
            }
            finally { ObjectFinallyHandler(); }
        }
        object TRIGGER_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 17;
                StartFileOperations( );
                __context__.SourceCodeLine = 18;
                MakeString(FNAME, "\\NVRAM\\{0}", N);
                __context__.SourceCodeLine = 19;
                NFILEHANDLE = (short)(FileOpen(FNAME, (ushort)(0 | 16384)));
                __context__.SourceCodeLine = 20;
                if (Functions.TestForTrue((Functions.BoolToInt(NFILEHANDLE >= 0))))
                {
                    __context__.SourceCodeLine = 22;
                    FileRead((short)(NFILEHANDLE), SBUF, (ushort)(4096));
                    __context__.SourceCodeLine = 23;
                    FileSeek((short)(NFILEHANDLE), (uint)(0), (ushort)(0));
                    __context__.SourceCodeLine = 24;
                    MakeString(I, "");
                    __context__.SourceCodeLine = 25;
                    I.UpdateValue(SBUF);
                    __context__.SourceCodeLine = 26;
                    FileClose((short)(NFILEHANDLE));
                    __context__.SourceCodeLine = 27;
                    EndFileOperations( );
                }
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#17
0
        object OFF_PR_OnPush_2(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 185;
                SELECT_ITEM(__context__, (ushort)(3));
                __context__.SourceCodeLine = 186;
                SINCE_TITLE__DOLLAR__.UpdateValue("");
                __context__.SourceCodeLine = 187;
                SINCE_TIME__DOLLAR__.UpdateValue("");
                __context__.SourceCodeLine = 188;
                DURATION_TITLE__DOLLAR__.UpdateValue("");
                __context__.SourceCodeLine = 189;
                DURATION_H__DOLLAR__.UpdateValue("");
                __context__.SourceCodeLine = 190;
                DURATION_UNIT__DOLLAR__.UpdateValue("");
                __context__.SourceCodeLine = 191;
                Functions.Delay((int)(100));
                __context__.SourceCodeLine   = 192;
                DESELECT_ITEM__POUND__.Value = (ushort)(3);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#18
0
        object RX_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
                CrestronString        COMMAND;
                CrestronString        TEMP;
                COMMAND = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this);
                TEMP    = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this);


                __context__.SourceCodeLine = 16;
                MakeString(TEMP, "coldbrew");
                __context__.SourceCodeLine = 17;
                if (Functions.TestForTrue((Functions.BoolToInt(RX == TEMP))))
                {
                    __context__.SourceCodeLine = 18;
                    MakeString(COMMAND, "Credits : Arun Kurian");
                }

                __context__.SourceCodeLine = 19;
                TX.UpdateValue(COMMAND);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#19
0
        object MYCLIENT_OnSocketReceive_5(Object __Info__)

        {
            SocketEventInfo __SocketInfo__ = (SocketEventInfo)__Info__;

            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SocketInfo__);

                __context__.SourceCodeLine = 147;
                if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(MYCLIENT.SocketRxBuf) < 256))))
                {
                    __context__.SourceCodeLine = 149;
                    Print("Rx: {0}", MYCLIENT.SocketRxBuf);
                }

                __context__.SourceCodeLine = 155;
                SOCLIENTRX.UpdateValue(MYCLIENT.SocketRxBuf);
                __context__.SourceCodeLine = 157;
                Functions.ClearBuffer(MYCLIENT.SocketRxBuf);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SocketInfo__); }
            return(this);
        }
示例#20
0
        object SEND_WOL_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
                CrestronString        WHICH_MAC;
                WHICH_MAC = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 6, this);

                CrestronString WOLSTRING;
                WOLSTRING = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 255, this);


                __context__.SourceCodeLine = 176;
                WHICH_MAC.UpdateValue(MAC_ADDRESS [Functions.GetLastModifiedArrayIndex(__SignalEventArg__)]);
                __context__.SourceCodeLine = 177;
                WOLSTRING.UpdateValue(CREATEWOLSTRING(__context__, WHICH_MAC));
                __context__.SourceCodeLine = 178;
                WOL__DOLLAR__.UpdateValue(WOLSTRING);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
 private void SENDTOQSYS(SplusExecutionContext __context__, CrestronString SMSGTOSEND)
 {
     __context__.SourceCodeLine = 124;
     TX__DOLLAR__.UpdateValue(SMSGTOSEND);
     __context__.SourceCodeLine = 125;
     Functions.ProcessLogic( );
 }
示例#22
0
        object TIMERCOUNTDOWN_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 87;
                ITEMP = (ushort)(TIMERCOUNTDOWN.UshortValue);
                __context__.SourceCodeLine = 88;
                IMINS = (ushort)((ITEMP / 60));
                __context__.SourceCodeLine = 89;
                ISECONDS = (ushort)(Mod(ITEMP, 60));
                __context__.SourceCodeLine = 90;
                TIMEOFMINS.Value           = (ushort)(IMINS);
                __context__.SourceCodeLine = 91;
                TIMEOFSECONDS.Value        = (ushort)(ISECONDS);
                __context__.SourceCodeLine = 92;
                TIMEOFMINS__DOLLAR__.UpdateValue(Functions.ItoA((int)(IMINS)));
                __context__.SourceCodeLine = 93;
                TIMEOFSECONDS__DOLLAR__.UpdateValue(Functions.ItoA((int)(ISECONDS)));
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#23
0
        private CrestronString PROCESSSEND(SplusExecutionContext __context__, CrestronString CMD)
        {
            ushort CMDLENGTH = 0;
            ushort I         = 0;
            ushort RESULT    = 0;


            __context__.SourceCodeLine = 82;
            CMDLENGTH = (ushort)(Functions.Length(CMD));
            __context__.SourceCodeLine = 83;
            RESULT = (ushort)(Byte(CMD, (int)(1)));
            __context__.SourceCodeLine = 85;
            ushort __FN_FORSTART_VAL__1 = (ushort)(2);
            ushort __FN_FOREND_VAL__1   = (ushort)CMDLENGTH;
            int    __FN_FORSTEP_VAL__1  = (int)1;

            for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0)  ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1)
            {
                __context__.SourceCodeLine = 87;
                RESULT = (ushort)((RESULT ^ Byte(CMD, (int)(I))));
                __context__.SourceCodeLine = 85;
            }

            __context__.SourceCodeLine = 90;
            OUT.UpdateValue("\u0001" + CMD + Functions.Chr((int)(Functions.Low((ushort)RESULT))) + "\u000d");

            return(""); // default return value (none specified in module)
        }
示例#24
0
        object ERRORFB_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
                CrestronString        ERROR__DOLLAR__;
                ERROR__DOLLAR__ = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 500, this);


                __context__.SourceCodeLine = 18;
                ushort __FN_FORSTART_VAL__1 = (ushort)(1);
                ushort __FN_FOREND_VAL__1   = (ushort)50;
                int    __FN_FORSTEP_VAL__1  = (int)1;
                for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0)  ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1)
                {
                    __context__.SourceCodeLine = 20;
                    if (Functions.TestForTrue((Functions.BoolToInt(ERRORFB[I].Value == 1))))
                    {
                        __context__.SourceCodeLine = 22;
                        ERROR__DOLLAR__.UpdateValue(ERROR__DOLLAR__ + ERRORIN__DOLLAR__ [I] + ", ");
                    }

                    __context__.SourceCodeLine = 18;
                }

                __context__.SourceCodeLine = 26;
                ERRORMESSAGE__DOLLAR__.UpdateValue(ERROR__DOLLAR__);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#25
0
        private void FN_PARSER(SplusExecutionContext __context__, CrestronString IN__DOLLAR__)
        {
            ushort I = 0;

            CrestronString TEXT;

            TEXT = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this);


            __context__.SourceCodeLine = 24;
            I = (ushort)(Functions.Find("MV", IN__DOLLAR__));
            __context__.SourceCodeLine = 25;
            if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.Find("MV", IN__DOLLAR__)) && Functions.TestForTrue(Functions.BoolToInt(Functions.Length(IN__DOLLAR__) < 7)))))))
            {
                __context__.SourceCodeLine = 27;
                VOLUME.Value = (ushort)(Functions.Atoi(Functions.Mid(IN__DOLLAR__, (int)(3), (int)(2))));
            }

            else
            {
                __context__.SourceCodeLine = 29;
                if (Functions.TestForTrue((Functions.Find("TFANNAME", IN__DOLLAR__))))
                {
                    __context__.SourceCodeLine = 31;
                    TEXT.UpdateValue(Functions.Mid(IN__DOLLAR__, (int)(9), (int)(Functions.Length(IN__DOLLAR__))));
                    __context__.SourceCodeLine = 32;
                    FREQNAME.UpdateValue(Functions.Remove("\u000D", TEXT));
                }

                else
                {
                    __context__.SourceCodeLine = 34;
                    if (Functions.TestForTrue((Functions.Find("TFAN0", IN__DOLLAR__))))
                    {
                        __context__.SourceCodeLine = 36;
                        TEXT.UpdateValue(Functions.Mid(IN__DOLLAR__, (int)(6), (int)(Functions.Length(IN__DOLLAR__))));
                        __context__.SourceCodeLine = 37;
                        TEXT.UpdateValue(Functions.Left(TEXT, (int)(5)));
                        __context__.SourceCodeLine = 38;
                        if (Functions.TestForTrue((Functions.BoolToInt(Functions.Left(TEXT, (int)(1)) == "0"))))
                        {
                            __context__.SourceCodeLine = 40;
                            TEXT.UpdateValue(Functions.Mid(TEXT, (int)(2), (int)(2)) + "." + Functions.Mid(TEXT, (int)(4), (int)(5)));
                        }

                        else
                        {
                            __context__.SourceCodeLine = 44;
                            TEXT.UpdateValue(Functions.Mid(TEXT, (int)(1), (int)(3)) + "." + Functions.Mid(TEXT, (int)(4), (int)(5)));
                        }

                        __context__.SourceCodeLine = 46;
                        TEXT.UpdateValue("FM " + TEXT + " MHz");
                        __context__.SourceCodeLine = 47;
                        FREQHZ.UpdateValue(TEXT);
                    }
                }
            }
        }
        object BUTTON_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 89;
                _SplusNVRAM.IINDEX         = (ushort)(Functions.GetLastModifiedArrayIndex(__SignalEventArg__));
                __context__.SourceCodeLine = 91;
                VANTAGE_TX__DOLLAR__.UpdateValue("BTNPRESS " + VID_INPUT__DOLLAR__ [_SplusNVRAM.IINDEX] + " \u000D\u000A");
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#27
0
        object MORNING_HOUR_OnChange_1(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 43;
                SUNRISE.UpdateValue(GETFORMATTEDTIME(__context__, (ushort)(MORNING_HOUR.UshortValue), (ushort)(MORNING_MINUTE.UshortValue), (ushort)(0)));
                __context__.SourceCodeLine = 44;
                SUNSET.UpdateValue(GETFORMATTEDTIME(__context__, (ushort)(NIGHT_HOUR.UshortValue), (ushort)(NIGHT_MINUTE.UshortValue), (ushort)(0)));
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#28
0
        object COPY_NUM_1_TO_NUM_2_OnPush_4(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 98;
                SNUM2.UpdateValue(SNUM1);
                __context__.SourceCodeLine = 99;
                NUM_2_FB__DOLLAR__.UpdateValue(SNUM2);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#29
0
        object EDIT_TO_OnPush_1(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 90;
                TO_FB__DOLLAR__.UpdateValue(_SplusNVRAM.STO);
                __context__.SourceCodeLine = 91;
                TEXT_FB__DOLLAR__.UpdateValue(_SplusNVRAM.STO);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#30
0
        object SELECT_NUM_1_OnPush_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);

                __context__.SourceCodeLine = 75;
                TEXT_FB__DOLLAR__.UpdateValue(SNUM1);
                __context__.SourceCodeLine = 76;
                IINCOMINGTEXT = (ushort)(1);
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }