Announcement

Collapse
No announcement yet.

Sending a parameter to a script in BLControl?

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

  • Sending a parameter to a script in BLControl?

    I see we can run a script when a NFC tag has been scanned. Anyway to send a parameter to that script? Is that what the script command is for? If so, can we get an example of the formatting? There isn't one in the help file that I can find.

    example:
    Need to run a script named, toggle.vb with a parameter of 416

    Thanks!
    Bryan
    Software/Hardware: Win10 Pro, HS 3 Pro, HS Touch, Echo, Edgeport/4, Z-Net w/88 Devices, Insteon PLM w/19 Devices, Nest, GC-100-6, W800RF32A, WS-2080 Weather Station (KMADRACU10)
    Plug-in/Scripts: Alexa API, BLBackup, BLGData, BLLED, BLLock, BLRF, BLTVGuide, Blue Iris, BLUPS, Current Cost 3P, DirectTV, FitbitSeer, Insteon, Nest, Pushover 3P, Random, Restart, Tasker, UltraGCIR3, UltraWeatherWU, Z-Wave

  • #2
    When you create an action you have it run a script or a script command.
    In your case just use the script command, then enter a script command to run a script with a parameter.

    Code:
    hs.RunScriptFunc("toggle.vb", "Main", "416", False, False)
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


    • #3
      Awesome, was hoping it was that easy! Tried it and it works perfectly.

      Thanks again!
      Bryan
      Software/Hardware: Win10 Pro, HS 3 Pro, HS Touch, Echo, Edgeport/4, Z-Net w/88 Devices, Insteon PLM w/19 Devices, Nest, GC-100-6, W800RF32A, WS-2080 Weather Station (KMADRACU10)
      Plug-in/Scripts: Alexa API, BLBackup, BLGData, BLLED, BLLock, BLRF, BLTVGuide, Blue Iris, BLUPS, Current Cost 3P, DirectTV, FitbitSeer, Insteon, Nest, Pushover 3P, Random, Restart, Tasker, UltraGCIR3, UltraWeatherWU, Z-Wave

      Comment

      Working...
      X