Announcement

Collapse
No announcement yet.

Scripting Help?

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

  • Scripting Help?

    This is probably something stupid on my part, but I cannot get the attached script to run. I get the error "Running script, script run or compile error in file: C:/Program Files (x86)/HomeSeer HS3/scripts/BLAB8SSTest.txt1032:Invalid character in line 4 More info: Invalid character"

    I get the same error for every line using the PluginFunction. I believe I have have followed the syntax exactly as in the help file. So what am I doing wrong?

    Thanks,
    Attached Files
    Mark

    Hometroller S6 w/ HS3Pro, Way2Call
    BLAB8SS, BL Backup, Easy Trigger, HSTouch, Open Sprinkler, SONOS, Ultra1Wire3, UltraM1G, WeatherXML, Z-Wave

  • #2
    Try this as a vb.net script (.vb extension)

    Code:
    Sub Main(ByVal parm As Object)
        Dim s As String = ""
        Dim speaker As String = ""
        s = hs.PluginFunction("BLAB8SS","","GetPattern",new Object(){1})
        speaker = "Audrey4"
        hs.PluginFunction("BLAB8SS","","SetPattern",new Object(){"10111010A",1})
        hs.WaitSecs(2)
        hs.speak("the pattern has been set", ,speaker)
        hs.PluginFunction("BLAB8SS","","SetPattern",new Object(){s,1})
        hs.speak("the pattern was reset and the script finished", ,speaker)
    End Sub
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment

    Working...
    X