Announcement

Collapse
No announcement yet.

Calling Script: Cannot use parentheses when calling a sub

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

  • Calling Script: Cannot use parentheses when calling a sub

    In HSTouch I have the following:

    [$SCRIPT=&hs.runex("TraneThermostat.cs","GetSetpoint","275,27 6,277")]

    When this is being executed then the HS log says:

    Running script(1) &hs.runex("TraneThermostat.cs","GetSetpoint","275,276,277 "), init error: Cannot use parentheses when calling a Sub

    According to this page https://help.homeseer.com/help/HS3/s...harp_scripting I have to use &fhs instead of just &hs but that lead to other errors. I also tried with parentheses removed but that didn't help either. So what is the correct syntax?

  • #2
    Runex is a HS2 function. You need to use Runscript or Runscriptfunc.

    Check the docs you linked to.
    Jon

    Comment


    • #3
      Thanks. I found it. https://help.homeseer.com/help/HS3/static/#.scripts

      Comment

      Working...
      X