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]

Floorplan Sripting Help



I've have being trying to write Raw script to check the alarm status
of
Comfort and run an autoscript dependent on the outcome. The autoscript
is working fine, but Scipt Debug gives the following error:

Script error : *AlarmStateChecking* : 01/11/2006 21:11:46
Line : 11
Error Text :
AlarmState=xap.GetText(mi4.homeseer.server.93:comfortplugin.modedesc)
Error Description :Expected ')'

Here is my raw script:

Sub Main()
'
' gets alarm state, runs NightMode script if security is off
'
'
AlarmState=xap.GetText("mi4.homeseer.server.93:comfortplugin.modedesc")
'
if AlarmState = "Mode: security off, user  1" then
'
xap.ScriptRun(NightMode)
else
end if
'
End Sub

My scripting experience is next to none, but I just can't see where I'm
going wrong with this one.

Max





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.