The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: activex xap object?


  • Subject: Re: activex xap object?
  • From: "rleong1" <rleong1@xxxxxxxxx>
  • Date: Thu, 24 Aug 2006 14:50:30 -0000

my main automation software is a package called starCOM.  i would like
to be able to pass information between it & xap.  it would be ideal if
i could call the activex xap object from a script in starCOM to set or
read global variables.

you mentioned global variables and i'm still not clear on what global
variables are in xap.  where or are how they are stored?  in xplhal,
the xpl scripting engine, it's very obvious.  there is a page to
define and set global variables.

thanks!

--- In xap_automation@xxxxxxx, Lehane Kellett <lehane@...> wrote:
>
> I'll jump in with some answers...
>
> First off, what you use depends on your application. I use xAP
Floorplan
> as my
> scripting engine and 'quick look' status display. Where that isn't
> sufficient then
> I write code - anything from Pic to Perl to C# - but usually to
handle a
> device.
>
> If you are using, say, Floorplan, then you don't need an Active X
object
> - you
> can simply create scripts which act upon stimulii or timers. There
are some
> 'auto' scripting features too. As an example, I have a VBscript which
> acts on
> presses of a single push switch to control lighting scenes via DMX,
each
> press calls up a new scene, usually building on the last, but also
starts a
> timer(10s). When the timer has expired the action of the switch is
to turn
> all the lights off. Also for bathrooms it controls the ventilation
fans
> via timers.
> Make sure you are on the latest version if you are using timers in the
> scripts.
>
> I use global variables to hold the scene/switch state as well as some
> house status flags.
>
> The embedded html doesn't let you change variables(yet) but there are
> ways around it via 'ghost' devices and some scripting. You can use it
to
> embed a webcam display or some other non xAP/xPL status.
>
> I know James would like to get some examples on the pages so keep
> an eye out.
>
> HTH,
> Lehane
>
>
> rleong1 wrote:
> >
> > >
> > > Hi,
> > >
> > > There are at least three xAP OCX's - one written by Patrick
at
> > > http://patrick.lidstone.net/haweb/html/dev_tools.html
> > <http://patrick.lidstone.net/haweb/html/dev_tools.html>
> > > and a later one by James at
> > >
> >
http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21
> >
<http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21>
> > > (xAP Intranet OCX v1.2).
> > > There's also one written by Michael McSharry - available via
the
> > > HomeSeer/MCS forum.
> > >
> > > Each of these is very different in how it implements xAP and
some
> > people
> > > have reported issues with Patricks' re memory management
usage
during
> > > high traffic so possibly I would recommend James' which I
use
within my
> > > own applications now. James's xAP OCX even includes an
inbuilt web
> > server .
> >
> > can i stick this into a script? ie:
> > xap = new ActiveXObject("???.???");
> >
> > if so how?
> >
>
>
> > >
> > > You should also take a look at xAP FloorPlan too as it has
much the
> > same
> > > scripting capabilities as xPLHAL along with it's own web
server
based
> > > using AJAX so updates are real time - not browser refreshes
and you
> > can
> > > get at device status and embed your own html too. If you're
more
> > > adventurous then xAP Desktop supports xAP widgets and
scripting
> > allowing
> > > for realtime updated floating windows with transparency (XP)
&
> > > positional control and click on/through events.
> > >
> >
> > i have downloaded floorplan. how can i embed my own html? i don't
> > see this on the floorplan guide on mi4.biz.
> >
> > > I'll leave the getting variable values into your own asp
pages
to J to
> > > tackle...
> >
> > what app contains variables that i can set? how can i access them
> > from another app or script? in xplhal, i set up a script to react
to a
> > message and can set it w/ this:
> > Sys.value("WEATHER_DAY0") = ....
> > and can access it from any script with:
> > xyz = Sys.value("WEATHER_DAY0")
> >
> > thanks!
> >
> > >
> > > Cheers Kevin
> > >
> > >
> > > rleong1 wrote:
> > > >
> > > > i use a home automation package that doesn't support
xap but
has the
> > > > ability to use activex objects through scripting. is
there an
activex
> > > > object for xap? something that i could instantiate in a
script and
> > > > make the software i use appear to be xap enabled? (ie
it could
> > > > receive messages directed to it, etc) is this even
possible?
> > > >
> > > > one thing i like about xplhal is its global variables
to store
> > > > previous state, on which i can do scripting, etc. is
there
something
> > > > similar in xap to xplhal's global variables? another
feature i
like
> > > > is the ability to display those globals in my own asp
page. would
> > > > this be possible w/ xap?
> > > >
> > > > i bring a lot xap stuff across to xpl so i'm looking
for a way
to use
> > > > xap directly instead.
> > > >
> > > >
> > >
> >
> >
> >
------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date:
22/08/2006
> >
>









xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.