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: Floorplan Sripting Help



Hi,
Could you check this line

AlarmState=xap.GetText("mi4.homeseer.server.93:comfortplugin.modedesc")

as the error seems to show it without quotes:

AlarmState=xap.GetText(mi4.homeseer.server.93:comfortplugin.modedesc)

with quotes being correct
also

xap.ScriptRun(NightMode)

should be

x=xap.ScriptRun("NightMode")

as it is a function and returns data, also as you are passing a string
of text to the function that string needs to be in quotes. Actually
since you really dont want the data that it would return you could just:

xap.ScriptRun "NightMode"

hth

James


max wrote:
> 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
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>





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.