Announcement

Collapse
No announcement yet.

How do I run Hs.TriggerEvent from single script command

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

  • How do I run Hs.TriggerEvent from single script command

    I am trying to run hs.triggerevent from an immediate single script command in an event.

    &hs.TriggerEvent("TurnPoolHeaterOff”) or &hs.TriggerEvent "TurnPoolHeaterOff” - neither work. Error: init error: Unterminated string constant

    I am sure I am missing something basic here? Thanks.

  • #2
    For the end quotation mark, you have used a ” rather than a "

    Try

    &hs.TriggerEvent("TurnPoolHeaterOff")

    (copy/paste)
    Jon

    Comment


    • #3
      Thank you! This issue comes up about once every year or so and I completely forget to check for this.

      Comment

      Working...
      X