Announcement

Collapse
No announcement yet.

Nested script statements in HS?

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

  • Nested script statements in HS?

    Hi,

    Is a single script statement like this possible?

    &hs.setdevicestring "T60", (hs.devicevalue "W43")

    Result: the devicevalue of W43 is put in the device-string of T60.

    Any other way to do this? Don't want to create another .vb or .txt script

    Thank you!
    DJ

  • #2
    Originally posted by DJF3 View Post
    Hi,

    Is a single script statement like this possible?

    &hs.setdevicestring "T60", (hs.devicevalue "W43")

    Result: the devicevalue of W43 is put in the device-string of T60.

    Any other way to do this? Don't want to create another .vb or .txt script

    Thank you!
    DJ
    yes you can do this, but here is the correct syntax

    &hs.setdevicestring "T60", hs.devicevalue("W43")

    try it from the control/immediate window if you want
    Mark

    HS3 Pro 3.0.0.534
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    Comment


    • #3
      Thank you!

      DJ

      Comment

      Working...
      X