Announcement

Collapse
No announcement yet.

Double Talk

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

    Double Talk

    Hello!

    I upgraded to HS3 finally and am working to create new events. I downloaded and installed BLRandom and was setting it up like HS2. After taking time to read, I saw that there is a different syntax so I copied and called myself editing the code. I get the script to work, but it actually pulls 2 phrases at a time when an event trigger happens! I know it's something simple, but can you please see what I'm missing? How should the code actually look like? Here is what I currently have:

    Code:
    Sub Main(byval param As Object)
    
    	Dim message As String = hs.PluginFunction("BLRandom", "", "RandomizeGroup", new Object(){"Front Door Responses"})
    	hs.Speak(message, True)
    	message = Nothing
    
    End Sub

    #2
    That looks correct
    Put a hs.writelog in there to print out what is returned
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Got It

      Thanks Blade for the reply! I got home today and just deleted the device and added it again. Everything is working as it should now! As always, thanks so much!

      Comment

      Working...
      X