Announcement

Collapse
No announcement yet.

Script Not Being Called

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

  • Script Not Being Called

    I have a file with the filename "TraneThermostat.cs" in the scripts directory. That file contains a function "public object GetSetpoint(string arguments)". Then in HSTouch I have a text object where the text field is set to [$SCRIPT=&hs.runex("TraneThermostat.cs","GetSetpoint","275,27 6,277")]. However, the script doesn't seem to get called because for testing purposes I throw an exception at the very beginning of GetSetpoing but I see nothing in the log. Why is this not being called? Maybe the signature is wrong but then I would expect a log message that the function could not be found.

  • #2
    I think I know why it didn't throw an exception. I also had the StatusTrackingNormal set. I haven't replicated it but it seems HSTouch first uses that field and if it's set then it ignores what I have for "Text". Hence, no error message appears in the log.

    Comment

    Working...
    X