The problem is, I want to make those buttons work for several different channels, (upwards of 25 of them) rather than create (25 or more) variations, each customized to a single channel.
I understand Dynamic variables enough to make a working channel selector skin.
It has a button for each channel, and sets #DynamicChannelNumber# to 1,2, 3... etc. depending on the channel button pressed.
In the channel selector skin, and in the channel controls skin, I have something like this:
Code: Select all
[Variables]
1Channel=RainmeterTV
1URL=http://RainmeterTV.blogspot.com
1Tag=RainmeterTV
1USER=RainmeterGuest
1Password=retemniaR
2Channel=TallasseeTimes
2URL=http://TallasseeTV.com
2Tag=TallasseeTV
2USER=RainmeterGuest
2Password=retemniaR
3Channel=WestsideChurch
3URL=http://WestsideTallassee.com
3Tag=Westside
2USER=RainmeterGuest
2Password=retemniaR
DynamicChannelNumber=0
ThisChannel=None
ThisURL=None
ThisTag=None
ThisUser=None
ThisPassword=******
For each Channel selector button, I have this code:
Code: Select all
[selector1]
Meter=IMAGE
ImageName=icon#1Channel#.png
LeftMouseUpAction=!RainmeterSetVariable DynamicChannelNumber 1
DynamicVariables=1
[selector2]
Meter=IMAGE
ImageName=icon#2Channel#.png
LeftMouseUpAction=!RainmeterSetVariable DynamicChannelNumber 2
DynamicVariables=1
.
.
.
[selector25]
;etc.
In the Channel Selector skin I have this code to display the currently selected channel:
Code: Select all
[measureThisConfig]
Measure=CALC
Formula=#DynamicChannelNumber#
dynamicVariables=1
[meterThisConfig]
Meter=STRING
measureName=MeasureThisConfig
Text= Current channel is: #DynamicChannelNumber# or %1
dynamicVariables=1
Current channel is: 12 or 12
So I know both ways of accessing the dynamic variable works.
My problem is, how do i set the variables like "ThisChannel" ThisURL" etc to the correct #Channel or #URL value?
For example: If the button for [selector2] is clicked, How do I set the variable "ThisURL" to contain "http://TallasseeTV.com"
Or, for that matter, how would I change the code in other skins so that I could use something like:
IE: where DynamicChannelNumber has been set to two in the channel selector skin.)
Text=#DynamicChannelNumber#URL and have the text display or use the contents of the defined variable in #2USER#
I keep thinking that I just can't find the right syntax, the right combinations of quotes, brackets or parentheses around the value. On the other hand, maybe I just can't indirectly access a variable this way, or need to create some sort of array.
Then again, Maybe it is some sort of newbee mistake that I have gotten bogged down in,,, AGAIN!