| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] DDE from VB Martin Terry Sat, 11 Mar 2000 09:50:05 -0800 |
Why not post the code, of if it's too lengthy, post it to the ftp site? I'm
sure plenty of people would be interested.
-----Original Message-----
From: Doug Storey [mailto:dastorey@swbell.net]
Sent: Saturday, March 11, 2000 6:36 AM
To: ecs-list@netbloc.com
Subject: RE: [ECS] DDE from VB
Sure - you want it as is or when its done. Its a calendar/reminder program
that when executed from the startup menu or a shortcut on the desktop brings
up an input form. Birthdays, Wedding Aniversarys, One time reminders,
Trivia, and other are the catagories.
you fill in the date of the event and a reminder string. When ecs executes
this same executable with a numeric argument it goes through the data base
and creates an a file for ecs to speak. The program figures out how many
reminders for the day and puts in the proper sentence stucture. How old
someone is what day they were born on etc. The end result is a file that
makes it sound like the system has more intelect than it does. What the DDE
was for was to tell ECS rather or not to go after the file (could have done
that other ways but I wanted to learn how). Email me direct and we will
figure out how to get it to you.
-----Original Message-----
From: Don Stephens [mailto:donstephens@101freeway.com]
Sent: Friday, March 10, 2000 8:30 PM
To: ecs-list@netbloc.com
Subject: Re: [ECS] DDE from VB
Doug:
Would you mind sharing your code?
Don
----- Original Message -----
From: "Doug Storey" <dastorey@swbell.net>
To: <ecs-list@netbloc.com>
Sent: Friday, March 10, 2000 2:03 PM
Subject: RE: [ECS] DDE from VB
> Thanks Dan & Don
> I am using the following and it works.
>
> Form1.Text1.LinkTopic = "PGM->ECS|Any"
> Form1.Text1.LinkMode = 2
> Form1.Text1.LinkItem = "I,reminder,,SET,False"
> Form1.Text1.LinkRequest
> Unload Form1
> Set Form1 = Nothing
>
> Now if I could just find my memory leaks I would feel like one of the big
> boys. But that has nothing to do with ECS
>
> Thanks again
> Doug
>
> -----Original Message-----
> From: Dan Hoehnen [mailto:dhoehnen@infinet.com]
> Sent: Friday, March 10, 2000 9:32 AM
> To: ecs-list@netbloc.com
> Subject: RE: [ECS] DDE from VB
>
>
> Here is how ACE communicates with ECS.
>
> opening the DDE link:
>
> txtECSDDE.LinkTopic = "PGM->ECS|Any"
> txtECSDDE.LinkMode = 2 'manual dde link
> SendCommandToECS ("S,ace server") 'tell ecs what name to use to
connect
> to ACE
> SendCommandToECS ("C," & ECSClientID) 'tell ecs which DDE channel to
use
>
> The 3rd and 4th lines above are needed so ECS can send data back to ACE
> (your program). You may not need them for what you are doing. ECSClientID
> is either A or B or C or D, depending on which of the 4 DDE channels you
> want ECS to use. The S and C commands are documented in ddecln.c in your
> ECS folder.
>
> Sending data:
>
> txtECSDDE.LinkItem = ecsmsg
> txtECSDDE.LinkRequest
>
> You are executing the LinkRequest method before setting the LinkItem. You
> should reverse the order to be like mine.
>
> You are also missing a comma in your I command. You need 2 commas before
> the SET, like this:
>
> Form1.Text1.LinkItem = "I,reminder,, SET, 0"
>
> I also use "SET" instead of "set" in all of my commands to ECS. But, I
> don't know if case matters or not. Case DOES MATTER in the item name.
>
> Try both "0" and "False" and see which works (I think you have already
done
> this).
>
> I hope this helps.
>
> Dan
>
>
> > I am trying to use DDE from VB. I want to set a true/false type
> > item in ecs.
> > My VB statements are.
> >
> > Form1.Text1.LinkTopic = "PGM->ECS|Any"
> > Form1.Text1.LinkMode = 2
> > Form1.Text1.LinkRequest
> > Form1.Text1.LinkItem = "I,reminder, set, 0"
> >
> > The link is established. However I am not seting the state to 0 or
false
> > and the link is staying up. Can anyone assist with my programing
> > education.
> >
> > Tks Doug
> >
>
>