I am running HS 2.4.0.6 on an Windows XP computer. Via a script I want to access device status on another machine running Vista(64 bit). I have an operating Speaker Client on the Vista machine.
On the Vista machine, I have the script(HS.vbs) being run from a one line batch file that looks like:
%windir%\SysWoW64\cscript.exe c:\users\bob\desktop\HS.vbs
(SysWoW64 seems to be necessary to create the HS Object)
The script HS.vbs:
dim hsi
Set hsi = CreateObject("HomeSeer2.application")
hsi.SetHost ("EntCenter")
rval = hsi.Connect("","")
if rval <> "" then
MsgBox(rval)
End If
hsi.speak("Connected")
Set hs = hsi.GetHSRef '******ERROR HERE
hs.speak("Hello World")
Set hs=nothing
The script runs and seems to connect and speaks "Connected". But I get an error that "the class does not support 'GetHSRef' ..."
Does anyone understand what I am doing wrong?
Thanks for looking,
BobSpen
On the Vista machine, I have the script(HS.vbs) being run from a one line batch file that looks like:
%windir%\SysWoW64\cscript.exe c:\users\bob\desktop\HS.vbs
(SysWoW64 seems to be necessary to create the HS Object)
The script HS.vbs:
dim hsi
Set hsi = CreateObject("HomeSeer2.application")
hsi.SetHost ("EntCenter")
rval = hsi.Connect("","")
if rval <> "" then
MsgBox(rval)
End If
hsi.speak("Connected")
Set hs = hsi.GetHSRef '******ERROR HERE
hs.speak("Hello World")
Set hs=nothing
The script runs and seems to connect and speaks "Connected". But I get an error that "the class does not support 'GetHSRef' ..."
Does anyone understand what I am doing wrong?
Thanks for looking,
BobSpen
Comment