The UK Home Automation Archive

Archive Home
Group Home
Search Archive

Advanced Search

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

xapax.ocx with VBScript

  • Subject: xapax.ocx with VBScript
  • From: "Taras" <tartheode@xxxxxxxxx>
  • Date: Fri, 02 May 2008 20:11:20 -0000

I plan to develop a xAP driver for a home automation program
called "Premise Home Control".  Premise's native scripting
is VBScript.

I tried to use Patrick Lidstone's "xapax.ocx" with VBScript but
haven't made any progress.

The following works well in VBA (I tried it in Excel):
Public Sub test()
Dim xpx As New Xapax
MsgBox xpx.Version
End Sub
A message box pops up and displays "v.3.0 (Build 17)". OK!

I tried the following with VBScript:
set xpx = wscript.CreateObject("XAPAX.XapaxCtrl.1",
wscript.echo xpx.Version
The result is a dialog box indicating a "Catastrophic Failure" on
line 2, character 1. Not OK!

It doesn't fail at the "CreateObject" statement but when you try
use the instantiated object "Xpx".  Either I'm doing something
wrong or xapax.ocx cannot be used by VBScript (or it just doesn't
like Windows Script Host).

Any ideas where the problem lies?  Any alternate solutions that'll
work with VBScript?


xAP_Development Main Index | xAP_Development Thread Index | xAP_Development 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.