Beijer Electronics (formerly QSI Corporation)
http://www.qsiforums.com/

Slider help
http://www.qsiforums.com/viewtopic.php?f=6&t=4795
Page 1 of 1

Author:  Leonard [ Tue Aug 19, 2014 1:17 pm ]
Post subject:  Slider help

I am using a cueserver to control some lighting, and want to use a slider to give the value of the slider to a cueserver command when the slider is moved. (i.e. when the slider moves halfway send the command "cue3@(slidervalue)". I cannot get the syntax correct. Could you help?

Author:  Jeremy [ Tue Aug 26, 2014 11:32 am ]
Post subject:  Re: Slider help

You are probably looking at something like

Code:
dim toSend as string

'Use this line to convert a floating point value to a string
toSend = "cue3@(" + str(slider_1.value) + ")" 

'Use this line to convert the floating point value of the slider to an integer then the integer to a string
toSend = "cue3@(" + str(integer(slider_1.value)) + ")" 


Note you should use one of the conversion lines or the other but not both.
Replace slider_1 with the name of your slider.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/