|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ECS] Appending Text Martin Terry Thu, 10 Sep 1998 16:00:02 -0700 |
Well, basically for ECS, a text item has to be "pre defined". In other
words, if ECS had an event to speak, say, 10 static messages then 10
text items must exist, or you have to build each text item word by word
or character by character from an event. (Which comes in handy when you
need to speak the state of an item).
But I had dozens of static messages ("Next week is your anniversary",
etc). So I wrote an event that uses only one text item "Txt_Generic" and
populates it with external messages as necessary, each time overwriting
the last one.
Saved a lot on Text Items.
> -----Original Message-----
> From: Carl Keyes [SMTP:Ckeyes@global.california.com]
> Sent: Thursday, September 10, 1998 8:36 AM
> To: ecs-list@vancouver.ml.org
> Subject: Re: [ECS] Appending Text
>
> Martin,
>
> What would a text string on the fly be? Would'nt the basic structure
> have to be pre-defined and then altered?
>
> Thanks,
>
> Carl
>
>
>
> Martin Terry wrote:
> >
> > As an aside to this thread, I really didn't like the way ECS
> wouldn't
> > let you create text strings on the fly, so I wrote an event that
> loads a
> > text string from a text file. I use this method for all the mundane
> > messages that ecs needs to say or log, but only use a single text
> item.
> > They are referenced in events by a number and that number is passed
> to
> > an event that loads the message.
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects