I try to pass a Slider value into a script. But it didn't work.Can anyone help ?
I save following a simple script to script directory.
And then create a slider in HSTouch Designer. In the slider action , I select " Run a HomeSeer script with values from elements(s)" , script I select my sample script , scriptprocedure I select main
script parameter 1 , I select this Slider element.
code in sample script.vb
Sub main(ByVal Parms As Object)
hs.writelog("Test", "This is parameter 1: " & Parms(0).ToString)
End Sub
But when I run the action , it keep prompt out a error on the log.
The slider's value that pass as parameter , that is byte array or a string ?
Thanks
I save following a simple script to script directory.
And then create a slider in HSTouch Designer. In the slider action , I select " Run a HomeSeer script with values from elements(s)" , script I select my sample script , scriptprocedure I select main
script parameter 1 , I select this Slider element.
code in sample script.vb
Sub main(ByVal Parms As Object)
hs.writelog("Test", "This is parameter 1: " & Parms(0).ToString)
End Sub
But when I run the action , it keep prompt out a error on the log.
The slider's value that pass as parameter , that is byte array or a string ?
Thanks
Comment