Announcement

Collapse
No announcement yet.

Old script now errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Old script now errors

    I have a script which has run perfectly since Installed HS3 until yesterday, now it errors
    Jul-08 21:15:06 Error Running script, script run or compile error in file: C:/Program Files/HomeSeer HS3/scripts/Greeting.txt1002:Syntax error in line 36 More info: Syntax error
    this is line 35 36 and 37.
    Code:
    If hs.DeviceValue(1133) = 1 Then
    hs.Speak "Gordon is at Dalmeny Station."
    end if
    Anyone spot what is wrong
    sigpic
    A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

    #2
    I don't see an error.
    What happens if you remove the period after station?
    You could also try
    Code:
    hs.Speak "Gordon is at Dalmeny Station", True
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548, NUC i3

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

    Comment


      #3
      I think you need the parentheses.

      hs.speak("Gordon is at Dalmeny Station", True)
      Fred

      HomeSeer Pro 3.0.0.548, HS3Touch, Zwave 3.0.1.252, Envisalink DSC 3.0.0.40, WeatherXML, Z-stick, HS phone, Way2Call

      Comment


        #4
        Can you post your entire script? It might be related to / caused by something on another line.
        Best regards,
        -Mark-

        If you're not out on the edge, you're taking up too much room!
        Interested in 3D maps? Check out my company site: Solid Terrain Modeling

        Comment


          #5
          Originally posted by mfisher View Post
          Can you post your entire script? It might be related to / caused by something on another line.
          Erm the fault was mine. HS reported the error in line 36, I opened the script in notetab, word wrap was on, so line 36 was not actually 36 until I turned off word wrap!
          sigpic
          A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

          Comment

          Working...
          X