Announcement

Collapse
No announcement yet.

Script Error

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

    Script Error

    Hi there,

    I am just getting started with this plugin...if I drive the plugin via the web interface then everything seems to be ok...

    However, if I try to use the script engine then I just get a HS dialogue asking me to terminate the script.

    Code:
     
    Sub Main(ByVal App As String)
    If App = "On" Then
    hs.plugin("AB8SS").SpkrOn("Hallway Speaker")
    End If
    If App = "Off" Then
    hs.plugin("AB8SS").SpkrOff("Hallway Speaker")
    End If
     
    End Sub

    What am I doing wrong?

    Thanks

    Darren
Working...
X