I am trying to call a script from an HSTouch Slider selection. I'm basically trying to use a slider to control volume on my Russound.
I need to pass the script 3 parms (controller number, zone number, volume). I have the controller and zone hardcoded and am trying to pass the value of my slider for the volume.
&hs.RunScript("BLRussound_Functions.vb","Set_Zone_Volume","1 ;4;Slider_002")
This results in a parm string of "1;4;Slider_002". I know the above is wrong as it is taking the slider name as text but I can't figure out what the right way is. How do I include a slider's value in a parm string so it ends up with a number between 1-100? Do I use a & or something in front of the slider name?
I've tried everything I can think of. Any help is appreciated!
Chad
I need to pass the script 3 parms (controller number, zone number, volume). I have the controller and zone hardcoded and am trying to pass the value of my slider for the volume.
&hs.RunScript("BLRussound_Functions.vb","Set_Zone_Volume","1 ;4;Slider_002")
This results in a parm string of "1;4;Slider_002". I know the above is wrong as it is taking the slider name as text but I can't figure out what the right way is. How do I include a slider's value in a parm string so it ends up with a number between 1-100? Do I use a & or something in front of the slider name?
I've tried everything I can think of. Any help is appreciated!
Chad
Comment