I have this syntax in a .vb script:
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Living Room Window Is Open",True)
When the script is listed in the Event window, it has been changed to:
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'></silence> Make An Announcement <silence msec='3500'></silence> Master Bedroom Window Is Open",True)
When run, I then get an error in HS Speaker log:
8/18/2019 7:45:18 PM:Error in Speak: Exception from HRESULT: 0x80045042 indicating a syntax error.
I have edited the script inside the Event window to remove the added text, save the script, and the window immediately reverts the edits back to the incorrect syntax.
I have put the correct syntax into an event "execute immediate script command" as:
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Master Bedroom Window Is Open",True)
and run the event and get in the HS Speaker Log:
8/18/2019 8:15:02 PM:Speak: <volume level = "100"> <rate absspeed="-4"> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Master Bedroom Window Is Open
and is spoken correctly (i.e. the syntax as originally written is correct)
How can I keep the syntax from being changed? (What changes it???)
HomeSeer Version: HS3 Pro Edition 3.0.0.531
Operating System: Microsoft Windows 7 Home Premium - Work Station
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Living Room Window Is Open",True)
When the script is listed in the Event window, it has been changed to:
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'></silence> Make An Announcement <silence msec='3500'></silence> Master Bedroom Window Is Open",True)
When run, I then get an error in HS Speaker log:
8/18/2019 7:45:18 PM:Error in Speak: Exception from HRESULT: 0x80045042 indicating a syntax error.
I have edited the script inside the Event window to remove the added text, save the script, and the window immediately reverts the edits back to the incorrect syntax.
I have put the correct syntax into an event "execute immediate script command" as:
hs.Speak ("<volume level = ""100""> <rate absspeed=""-4""> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Master Bedroom Window Is Open",True)
and run the event and get in the HS Speaker Log:
8/18/2019 8:15:02 PM:Speak: <volume level = "100"> <rate absspeed="-4"> Alexa - <silence msec='300'/> Make An Announcement <silence msec='3500'/> Master Bedroom Window Is Open
and is spoken correctly (i.e. the syntax as originally written is correct)
How can I keep the syntax from being changed? (What changes it???)
HomeSeer Version: HS3 Pro Edition 3.0.0.531
Operating System: Microsoft Windows 7 Home Premium - Work Station
Comment