I am getting a error on my start up script. I use to start up the speaker and now its now. Help desk tried to help me, but talked way above my head, even asking them to try to come down to my level, I still got a confusing answer. Could someone look at this and tell me what is going on. It has never spoke "Welcome to homeseer" which I think would be so cool. This is the error I am getting
2/1/2008 10:32:20 PM - Error - Running script, script run or compile error in file: startup.txt1016:Expected 'Sub' in line 9 More info: Expected 'Sub'
' this is the startup script
' it is run once when HomeSeer starts up
'
' this is a good place to default status on some devices
'
sub main()
hs.WriteLog "Startup","Scripting is OK"
hs.IsApplicationRunning("Speaker")
hs.Launch hs.GetAppPath & "\HomeSeer 2\Speaker.exe","","",0 end if
' if speaker client is not running, start it
if not hs.IsApplicationRunning("Speaker") then
hs.Launch hs.GetAppPath & "\HomeSeer 2\Speaker.exe","","",0
end if
' speak
hs.speak "Welcome to Home-Seer"
'add calls startup scripts and function calls here
'i_ret = hs.RunEx("WAF-NetCallerID.vbh","open_ncid","")
hs.runex "NetCallerID_funcs.vb","NCID_open_port",""
end sub
2/1/2008 10:32:20 PM - Error - Running script, script run or compile error in file: startup.txt1016:Expected 'Sub' in line 9 More info: Expected 'Sub'
' this is the startup script
' it is run once when HomeSeer starts up
'
' this is a good place to default status on some devices
'
sub main()
hs.WriteLog "Startup","Scripting is OK"
hs.IsApplicationRunning("Speaker")
hs.Launch hs.GetAppPath & "\HomeSeer 2\Speaker.exe","","",0 end if
' if speaker client is not running, start it
if not hs.IsApplicationRunning("Speaker") then
hs.Launch hs.GetAppPath & "\HomeSeer 2\Speaker.exe","","",0
end if
' speak
hs.speak "Welcome to Home-Seer"
'add calls startup scripts and function calls here
'i_ret = hs.RunEx("WAF-NetCallerID.vbh","open_ncid","")
hs.runex "NetCallerID_funcs.vb","NCID_open_port",""
end sub
Comment