It is currently April 16th, 2024, 4:44 am

RoundLineMeter Location

Get help with creating, editing & fixing problems with skins
bill98
Posts: 445
Joined: March 17th, 2011, 4:54 am

Re: RoundLineMeter Location

Post by bill98 »

My problem was trying to change an @Include statement by using a variable in the @Include. which I guess is a no no, dynamic variables are not allowed in an @Include. My next idea is to include all files and use a variable in the ImageName=value. Right now my statement is ImageName="#IconSrc##IconL1#". I want to change #IconL1# to include the variable #LNO#, which contains the value 1-16. I want something like "#IconSrc##IconL1#LNO##" so I end up with ImageNames like:
ImageName="#IconSrc##IconL11#"
ImageName="#IconSrc##IconL12#"
ImageName="#IconSrc##IconL13#"
ImageName="#IconSrc##IconL14#"
ImageName="#IconSrc##IconL15#"
ImageName="#IconSrc##IconL16#"
...

ImageName="#IconSrc##IconL116#"

My question is what is the correct format of Image Name. My guess of ImageName="#IconSrc##IconL1#LNO##" doesn't work. Is there a format that will work?
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: RoundLineMeter Location

Post by balala »

bill98 wrote:My problem was trying to change an @Include statement by using a variable in the @Include. which I guess is a no no, dynamic variables are not allowed in an @Include.
You're right, the @Include statement can be changed just with the !WriteKeyValue bang, after a refresh of the skin.
bill98 wrote:My guess of ImageName="#IconSrc##IconL1#LNO##" doesn't work. Is there a format that will work?
You can't use a variable into another, but a while ago practically I had the same question. I got an interesting idea from moshi. According to this, you'll have to create a this kind of measure:

Code: Select all

[MeasureLNO]
Measure=String
String=#LNO#
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL11#","^2$":"#IconSrc##IconL12#","^3$":"#IconSrc##IconL13#","^4$":"#IconSrc##IconL14#","^5$":"#IconSrc##IconL15#","^6$":"#IconSrc##IconL16#","^7$":"#IconSrc##IconL17#","^8$":"#IconSrc##IconL18#","^9$":"#IconSrc##IconL19#","^10$":"#IconSrc##IconL110#","^11$":"#IconSrc##IconL111#","^12$":"#IconSrc##IconL112#","^13$":"#IconSrc##IconL113#","^14$":"#IconSrc##IconL114#","^15$":"#IconSrc##IconL115#","^16$":"#IconSrc##IconL116#"
then use it to set the image: MeasureName=MeasureLNO on the image meter (maybe you'll also need to add a DynamicVariables=1 option to the MeasureLNO measure).
bill98
Posts: 445
Joined: March 17th, 2011, 4:54 am

Re: RoundLineMeter Location

Post by bill98 »

Thank you, that works! But, I have 256 groups of 3 variables each which makes 768 total. I sure hope I don't have to do that substitution for that many variables.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: RoundLineMeter Location

Post by FreeRaider »

bill98, out of curiosity, can you post an sample code, please?
bill98
Posts: 445
Joined: March 17th, 2011, 4:54 am

Re: RoundLineMeter Location

Post by bill98 »

You asked for it!

Code: Select all

[IconN1]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0101#","^2$":"#IconSrc##IconL0102#","^3$":"#IconSrc##IconL0103#","^4$":"#IconSrc##IconL0104#","^5$":"#IconSrc##IconL0105#","^6$":"#IconSrc##IconL0106#","^7$":"#IconSrc##IconL0107#","^8$":"#IconSrc##IconL0108#","^9$":"#IconSrc##IconL0109#","^10$":"#IconSrc##IconL0110#","^11$":"#IconSrc##IconL0111#","^12$":"#IconSrc##IconL0112#","^13$":"#IconSrc##IconL0113#","^14$":"#IconSrc##IconL0114#","^15$":"#IconSrc##IconL0115#","^16$":"#IconSrc##IconL0116#"

[IconN2]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0201#","^2$":"#IconSrc##IconL0202#","^3$":"#IconSrc##IconL0203#","^4$":"#IconSrc##IconL0204#","^5$":"#IconSrc##IconL0205#","^6$":"#IconSrc##IconL0206#","^7$":"#IconSrc##IconL0207#","^8$":"#IconSrc##IconL0208#","^9$":"#IconSrc##IconL0209#","^10$":"#IconSrc##IconL0210#","^11$":"#IconSrc##IconL0211#","^12$":"#IconSrc##IconL0212#","^13$":"#IconSrc##IconL0213#","^14$":"#IconSrc##IconL0214#","^15$":"#IconSrc##IconL0215#","^16$":"#IconSrc##IconL0216#"

[IconN3]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0301#","^2$":"#IconSrc##IconL0302#","^3$":"#IconSrc##IconL0303#","^4$":"#IconSrc##IconL0304#","^5$":"#IconSrc##IconL0305#","^6$":"#IconSrc##IconL0306#","^7$":"#IconSrc##IconL0307#","^8$":"#IconSrc##IconL0308#","^9$":"#IconSrc##IconL0309#","^10$":"#IconSrc##IconL0310#","^11$":"#IconSrc##IconL0311#","^12$":"#IconSrc##IconL0312#","^13$":"#IconSrc##IconL0313#","^14$":"#IconSrc##IconL0314#","^15$":"#IconSrc##IconL0315#","^16$":"#IconSrc##IconL0316#"

[IconN4]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0401#","^2$":"#IconSrc##IconL0402#","^3$":"#IconSrc##IconL0403#","^4$":"#IconSrc##IconL0404#","^5$":"#IconSrc##IconL0405#","^6$":"#IconSrc##IconL0406#","^7$":"#IconSrc##IconL0407#","^8$":"#IconSrc##IconL0408#","^9$":"#IconSrc##IconL0409#","^10$":"#IconSrc##IconL0410#","^11$":"#IconSrc##IconL0411#","^12$":"#IconSrc##IconL0412#","^13$":"#IconSrc##IconL0413#","^14$":"#IconSrc##IconL0414#","^15$":"#IconSrc##IconL0415#","^16$":"#IconSrc##IconL0416#"

[IconN5]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0501#","^2$":"#IconSrc##IconL0502#","^3$":"#IconSrc##IconL0503#","^4$":"#IconSrc##IconL0504#","^5$":"#IconSrc##IconL0505#","^6$":"#IconSrc##IconL0506#","^7$":"#IconSrc##IconL0507#","^8$":"#IconSrc##IconL0508#","^9$":"#IconSrc##IconL0509#","^10$":"#IconSrc##IconL0510#","^11$":"#IconSrc##IconL0511#","^12$":"#IconSrc##IconL0512#","^13$":"#IconSrc##IconL0513#","^14$":"#IconSrc##IconL0514#","^15$":"#IconSrc##IconL0515#","^16$":"#IconSrc##IconL0516#"

[IconN6]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0601#","^2$":"#IconSrc##IconL0602#","^3$":"#IconSrc##IconL0603#","^4$":"#IconSrc##IconL0604#","^5$":"#IconSrc##IconL0605#","^6$":"#IconSrc##IconL0606#","^7$":"#IconSrc##IconL0607#","^8$":"#IconSrc##IconL0608#","^9$":"#IconSrc##IconL0609#","^10$":"#IconSrc##IconL0610#","^11$":"#IconSrc##IconL0611#","^12$":"#IconSrc##IconL0612#","^13$":"#IconSrc##IconL0613#","^14$":"#IconSrc##IconL0614#","^15$":"#IconSrc##IconL0615#","^16$":"#IconSrc##IconL0616#"

[IconN7]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0701#","^2$":"#IconSrc##IconL0702#","^3$":"#IconSrc##IconL0703#","^4$":"#IconSrc##IconL0704#","^5$":"#IconSrc##IconL0705#","^6$":"#IconSrc##IconL0706#","^7$":"#IconSrc##IconL0707#","^8$":"#IconSrc##IconL0708#","^9$":"#IconSrc##IconL0709#","^10$":"#IconSrc##IconL0710#","^11$":"#IconSrc##IconL0711#","^12$":"#IconSrc##IconL0712#","^13$":"#IconSrc##IconL0713#","^14$":"#IconSrc##IconL0714#","^15$":"#IconSrc##IconL0715#","^16$":"#IconSrc##IconL0716#"

[IconN8]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0801#","^2$":"#IconSrc##IconL0802#","^3$":"#IconSrc##IconL0803#","^4$":"#IconSrc##IconL0804#","^5$":"#IconSrc##IconL0805#","^6$":"#IconSrc##IconL0806#","^7$":"#IconSrc##IconL0807#","^8$":"#IconSrc##IconL0808#","^9$":"#IconSrc##IconL0809#","^10$":"#IconSrc##IconL0810#","^11$":"#IconSrc##IconL0811#","^12$":"#IconSrc##IconL0812#","^13$":"#IconSrc##IconL0813#","^14$":"#IconSrc##IconL0814#","^15$":"#IconSrc##IconL0815#","^16$":"#IconSrc##IconL0816#"

[IconN9]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL0901#","^2$":"#IconSrc##IconL0902#","^3$":"#IconSrc##IconL0903#","^4$":"#IconSrc##IconL0904#","^5$":"#IconSrc##IconL0905#","^6$":"#IconSrc##IconL0906#","^7$":"#IconSrc##IconL0907#","^8$":"#IconSrc##IconL0908#","^9$":"#IconSrc##IconL0909#","^10$":"#IconSrc##IconL0910#","^11$":"#IconSrc##IconL0911#","^12$":"#IconSrc##IconL0912#","^13$":"#IconSrc##IconL0913#","^14$":"#IconSrc##IconL0914#","^15$":"#IconSrc##IconL0915#","^16$":"#IconSrc##IconL0916#"

[IconN10]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1001#","^2$":"#IconSrc##IconL1002#","^3$":"#IconSrc##IconL1003#","^4$":"#IconSrc##IconL1004#","^5$":"#IconSrc##IconL1005#","^6$":"#IconSrc##IconL1006#","^7$":"#IconSrc##IconL1007#","^8$":"#IconSrc##IconL1008#","^9$":"#IconSrc##IconL1009#","^10$":"#IconSrc##IconL1010#","^11$":"#IconSrc##IconL1011#","^12$":"#IconSrc##IconL1012#","^13$":"#IconSrc##IconL1013#","^14$":"#IconSrc##IconL1014#","^15$":"#IconSrc##IconL1015#","^16$":"#IconSrc##IconL1016#"

[IconN11]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1101#","^2$":"#IconSrc##IconL1102#","^3$":"#IconSrc##IconL1103#","^4$":"#IconSrc##IconL1104#","^5$":"#IconSrc##IconL1105#","^6$":"#IconSrc##IconL1106#","^7$":"#IconSrc##IconL1107#","^8$":"#IconSrc##IconL1108#","^9$":"#IconSrc##IconL1109#","^10$":"#IconSrc##IconL1110#","^11$":"#IconSrc##IconL1111#","^12$":"#IconSrc##IconL1112#","^13$":"#IconSrc##IconL1113#","^14$":"#IconSrc##IconL1114#","^15$":"#IconSrc##IconL1115#","^16$":"#IconSrc##IconL1116#"

[IconN12]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1201#","^2$":"#IconSrc##IconL1202#","^3$":"#IconSrc##IconL1203#","^4$":"#IconSrc##IconL1204#","^5$":"#IconSrc##IconL1205#","^6$":"#IconSrc##IconL1206#","^7$":"#IconSrc##IconL1207#","^8$":"#IconSrc##IconL1208#","^9$":"#IconSrc##IconL1209#","^10$":"#IconSrc##IconL1210#","^11$":"#IconSrc##IconL1211#","^12$":"#IconSrc##IconL1212#","^13$":"#IconSrc##IconL1213#","^14$":"#IconSrc##IconL1214#","^15$":"#IconSrc##IconL1215#","^16$":"#IconSrc##IconL1216#"

[IconN13]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1301#","^2$":"#IconSrc##IconL1302#","^3$":"#IconSrc##IconL1303#","^4$":"#IconSrc##IconL1304#","^5$":"#IconSrc##IconL1305#","^6$":"#IconSrc##IconL1306#","^7$":"#IconSrc##IconL1307#","^8$":"#IconSrc##IconL1308#","^9$":"#IconSrc##IconL1309#","^10$":"#IconSrc##IconL1310#","^11$":"#IconSrc##IconL1311#","^12$":"#IconSrc##IconL1312#","^13$":"#IconSrc##IconL1313#","^14$":"#IconSrc##IconL1314#","^15$":"#IconSrc##IconL1315#","^16$":"#IconSrc##IconL1316#"

[IconN14]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1401#","^2$":"#IconSrc##IconL1402#","^3$":"#IconSrc##IconL1403#","^4$":"#IconSrc##IconL1404#","^5$":"#IconSrc##IconL1405#","^6$":"#IconSrc##IconL1406#","^7$":"#IconSrc##IconL1407#","^8$":"#IconSrc##IconL1408#","^9$":"#IconSrc##IconL1409#","^10$":"#IconSrc##IconL1410#","^11$":"#IconSrc##IconL1411#","^12$":"#IconSrc##IconL1412#","^13$":"#IconSrc##IconL1413#","^14$":"#IconSrc##IconL1414#","^15$":"#IconSrc##IconL1415#","^16$":"#IconSrc##IconL1416#"

[IconN15]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1501#","^2$":"#IconSrc##IconL1502#","^3$":"#IconSrc##IconL1503#","^4$":"#IconSrc##IconL1504#","^5$":"#IconSrc##IconL1505#","^6$":"#IconSrc##IconL1506#","^7$":"#IconSrc##IconL1507#","^8$":"#IconSrc##IconL1508#","^9$":"#IconSrc##IconL1509#","^10$":"#IconSrc##IconL1510#","^11$":"#IconSrc##IconL1511#","^12$":"#IconSrc##IconL1512#","^13$":"#IconSrc##IconL1513#","^14$":"#IconSrc##IconL1514#","^15$":"#IconSrc##IconL1515#","^16$":"#IconSrc##IconL1516#"

[IconN16]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#IconSrc##IconL1601#","^2$":"#IconSrc##IconL1602#","^3$":"#IconSrc##IconL1603#","^4$":"#IconSrc##IconL1604#","^5$":"#IconSrc##IconL1605#","^6$":"#IconSrc##IconL1606#","^7$":"#IconSrc##IconL1607#","^8$":"#IconSrc##IconL1608#","^9$":"#IconSrc##IconL1609#","^10$":"#IconSrc##IconL1610#","^11$":"#IconSrc##IconL1611#","^12$":"#IconSrc##IconL1612#","^13$":"#IconSrc##IconL1613#","^14$":"#IconSrc##IconL1614#","^15$":"#IconSrc##IconL1615#","^16$":"#IconSrc##IconL1616#"

[AppN01]
Measure=String
String=#LNO#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^1$":"#app0101#","^2$":"#app0102#","^3$":"#app0103#","^4$":"#app0104#","^5$":"#app0105#","^6$":"#app0106#","^7$":"#app0107#","^8$":"#app0108#","^9$":"#app0109#","^10$":"#app0110#","^11$":"#app0111#","^12$":"#app0112#","^13$":"#app0113#","^14$":"#app0114#","^15$":"#app0115#","^16$":"#app0116#"

[SetTitleD]
Meter=String
x=(#XC1#+200)
y=(#YC1#+200-#Bdr7#-40)
FontColor=0,0,0,255
FontSize=20
StringAlign=Center
Text=[zjTitle]
DynamicVariables=1
Group=LauncherD

[IconBG2D]
Meter=ROUNDLINE
x=(#XC1#)
y=(#YC1#)
w=#WD#
h=#HT#
LineLength=#Bdr7#
LineStart=(#Bdr6#+#Bdr#)
StartAngle=0
RotationAngle=6.32
LineColor=#12C#,#12A#
Solid=1
AntiAlias=1
UpdateDivider=-1
Group=LauncherD
Hidden=0


[ICONBDR6D]
Meter=ROUNDLINE
x=(#XC1#)
y=(#YC1#)
w=#WD#
h=#HT#
LineLength=(#Bdr7#+#Bdr#)
LineStart=#Bdr7#
StartAngle=0
RotationAngle=(2*PI())
AntiAlias=1
LineColor=#1C#,#1A#
Solid=1
Hidden=0
Group=LauncherD
;UpdateRate=-1


[StripeD]
Meter=ROUNDLINE
x=(#XC1#)
y=(#YC1#)
w=#WD#
h=#HT#
LineLength=#StripeDCtr#+5
LineStart=#StripeDCtr#-5
StartAngle=(PI()/2)
RotationAngle=(2*PI())
AntiAlias=1
LineColor=#14C#,#14A#
Solid=1
Group=LauncherD

[IconL1]
Meter=Image
MeasureName=IconN1
Hidden=0
x=((#XC1#+175)-#StripeDCtr#*Cos(22.5*12/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*12/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN1]
LeftMouseUpAction=[AppN01][!HideMeterGroup "LauncherD"][!SetVariable LNO "0"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle0101#"
ToolTipType="#ToolTipType0101#"
ToolTipIcon="#ToolTipIcon0101#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText0101#"
DynamicVariables=1

[IconL2]
MeasureName=IconN2
Meter=Image
x=(#XC1#+155+#IconS#/2+#StripeDCtr#*Cos(22.5*13/(180/PI())))
y=(#YC1#+195-#IconS#/2+#StripeDCtr#*Sin(22.5*13/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN2]
LeftMouseDownAction=[AppN02][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
Hidden=0
ToolTipTitle="#ToolTipTitle0201#"
ToolTipType="#ToolTipType0201#"
ToolTipIcon="#ToolTipIcon0201#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText0201#"

[IconL3]
MeasureName=IconN3
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*14/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*14/(180/PI())))
w=#IconS#
h=#IconS#
ImageName=[IconN3]
LeftMouseDownAction=[AppN03][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh][!ShowMeterGroup "LauncherD"][!ReDraw][!HideMeterGroup LauncherI][!ShowMeterGroup "LauncherD"][!ReDraw]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
Group=LauncherD
ToolTipTitle="#ToolTipTitle3#"
ToolTipType="#ToolTipType3#"
ToolTipIcon="#ToolTipIcon3#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText3#"


[IconL4]
MeasureName=IconN4
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*15/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*15/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN4]
LeftMouseDownAction=[AppN04][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
;RightMouseDownAction=[!WriteKeyValue Variables Launcher2Active 0 "#@#VariablesM2.inc"][!HideMeterGroup "LauncherD"][!ShowMeterGroup "LauncherI"]
ToolTipTitle="#ToolTipTitle4#"
ToolTipType="#ToolTipType4#"
ToolTipIcon="#ToolTipIcon4#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText4#"


[IconL5]
MeasureName=IconN5
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*16/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*16/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN5]
LeftMouseDownAction=[AppN05][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle5#"
ToolTipType="#ToolTipType5#"
ToolTipIcon="#ToolTipIcon5#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText5#"


[IconL6]
MeasureName=IconN6
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*1/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*1/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN6]
LeftMouseDownAction=[AppN06][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle6#"
ToolTipType="#ToolTipType6#"
ToolTipIcon="#ToolTipIcon6#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText6#"

[IconL7]
MeasureName=IconN7
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*2/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*2/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN7]
LeftMouseDownAction=[AppN07][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle7#"
ToolTipType="#ToolTipType7#"
ToolTipIcon="#ToolTipIcon7#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText7#"


[IconL8]
MeasureName=IconN8
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*3/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*3/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN8]
LeftMouseDownAction=[AppN08][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle8#"
ToolTipType="#ToolTipType8#"
ToolTipIcon="#ToolTipIcon8#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText8#"


[IconL9]
MeasureName=IconN9
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*4/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*4/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN9]
LeftMouseDownAction=[AppN09][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle9#"
ToolTipType="#ToolTipType9#"
ToolTipIcon="#ToolTipIcon9#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText9#"


[IconL10]
MeasureName=IconN10
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*5/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*5/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN10]
LeftMouseDownAction=[AppN10][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle10#"
ToolTipType="#ToolTipType10#"
ToolTipIcon="#ToolTipIcon10#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText10#"

[IconL11]
MeasureName=IconN11
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*6/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*6/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN11]
LeftMouseDownAction=[AppN11][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle11#"
ToolTipType="#ToolTipType11#"
ToolTipIcon="#ToolTipIcon11#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText11#"


[IconL12]
MeasureName=IconN12
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*7/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*7/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN12]
LeftMouseDownAction=[AppN12][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle12#"
ToolTipType="#ToolTipType12#"
ToolTipIcon="#ToolTipIcon12#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText12#"


[IconL13]
MeasureName=IconN13
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*8/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*8/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN13]
LeftMouseDownAction=[AppN13][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle13#"
ToolTipType="#ToolTipType13#"
ToolTipIcon="#ToolTipIcon13#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText13#"


[IconL14]
MeasureName=IconN14
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*9/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*9/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[IconN14]
LeftMouseDownAction=[AppN14][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle14#"
ToolTipType="#ToolTipType14#"
ToolTipIcon="#ToolTipIcon14#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText14#"

[IconL15]
MeasureName=IconN15
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*10/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*10/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[LconN15]
LeftMouseDownAction=[AppN15][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle15#"
ToolTipType="#ToolTipType15#"
ToolTipIconL="#ToolTipIconL15#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText15#"


[IconL16]
MeasureName=IconN16
Meter=Image
Hidden=0
x=(#XC1#+200-#IconS#/2+#StripeDCtr#*Cos(22.5*11/(180/PI())))
y=(#YC1#+200-#IconS#/2+#StripeDCtr#*Sin(22.5*11/(180/PI())))
w=#IconS#
h=#IconS#
Group=LauncherD
ImageName=[LconN16]
LeftMouseDownAction=[AppN16][!HideMeterGroup "LauncherD"][!WriteKeyValue Variables LNO 0 #@#VariablesM2.inc][!ReFresh]
RightMouseUpAction=[!ShowMeterGroup "LauncherI"][!HideMeterGroup "LauncherD"]
ToolTipTitle="#ToolTipTitle16#"
ToolTipType="#ToolTipType16#"
ToolTipIcon="#ToolTipIcon16#"
ToolTipHidden=#IDef#
ToolTipText="#ToolTipText16#"
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: RoundLineMeter Location

Post by balala »

bill98 wrote:Thank you, that works! But, I have 256 groups of 3 variables each which makes 768 total. I sure hope I don't have to do that substitution for that many variables.
On the posted code you already have 256 substitutions. But I'm afraid you'll also have to do the rest. At least I don't see a easier solution.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: RoundLineMeter Location

Post by FreeRaider »

bill98, perhaps you can use a script lua similar to this one used in this post https://forum.rainmeter.net/viewtopic.php?p=120117#p120117
User avatar
raiguard
Posts: 660
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: RoundLineMeter Location

Post by raiguard »

jsmorley wrote:As balala says, you should have relatively few times you really need to use !Refresh in a skin. In any case using !Refresh should be viewed skeptically. It's the "big gun".

Even with !WriteKeyValue, which needs to have the skin refreshed to "see" and changes to skin .ini or @Include .inc files, you can often avoid a refresh with logic like:

[!SetVariable SomeVar "SomeValue"][!WriteKeyValue Variables SomeVar "SomeValue"][!UpdateMeasure *][!UpdateMeter *][!Redraw]

That way you have your cake and eat it too. You get immediate results from your change without having to refresh the entire skin, and if you DO refresh or reload the skin, the change is also "persistent'.

That is not to say there aren't times when !WriteKeyValue then !Refresh makes sense. If the change made by !WriteKeyValue impacts the entire functionality of the skin, it can be easier, and just as efficient, to just refresh the skin. However, remember that refresh is entirely destructive to any other changes that you made "in memory", like with !SetOption or !SetVariable. Refresh "starts over" as if you unloaded and reloaded the skin (with the single exception of the value of Counter).
I'm looking at implementing this ideology into my own skins, but there's one problem: All of my settings are managed by a unified config skin. Is it possible for the config skin to execute a SetVariable bang in the other skin?
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: RoundLineMeter Location

Post by balala »

It is, you just have to use it this way: [!SetVariable MyVariable "NededValue" "TheOtherConfig"], where TheOtherConfig is the config where you want to set the new value for the MyVariable (details). Almost every bang can work on other skins, just have to add the last parameter, which is the config where you want it to work.
User avatar
raiguard
Posts: 660
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: RoundLineMeter Location

Post by raiguard »

balala wrote:It is, you just have to use it this way: [!SetVariable MyVariable "NededValue" "TheOtherConfig"], where TheOtherConfig is the config where you want to set the new value for the MyVariable (details). Almost every bang can work on other skins, just have to add the last parameter, which is the config where you want it to work.
Oops, I knew I should have double checked the documentation. Thanks!
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017