Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 2016

Help: Rainmeter Skins • Re: SOLVED: Problem with combining shapes

$
0
0
I‘m not getting it yet, sorry. Somehow it works now with the 18. shape, with the (;Formula=(#P18# = 1 ? 1 : 0)/;Substitute="1":"20","0":"x"), but the 8. shape stays active when i move the launcher away :confused:

I am a litte bit confused with the last code you posted, i dont understand that at all, but i will try to impelement it.
Thank you :thumbup:
So, the code I posted in my 1st reply was just to show where the problems were, it was not meant to be used as a solution. The solution is to use regular expressions, like I said in my 2nd reply. Full code (the commented parts were my replacement variables, since you didn't post your Variables.inc, you can delete them if you like):

Code:

[Rainmeter]Update=-1BackgroundMode=2SolidColor=0,0,0,0DynamicWindowSize=1AccurateText=1Group=RahmenOnRefreshAction=[!Delay 300][!Move ((#FEXM#+50)*#Scale#) ((#FEYM#+50)*#Scale#)];-------------------INFOS--------------------[Metadata]Name=InfosAuthor=HagartInformation=***Rahmen für die aktiven Launcher***License=Version=1.01.05;-----------------VARIABELN------------------[Variables]@include=#@#Variables.incScale=#Skala#DeltaX=35DeltaY=60; Color1=255,255,255; Scale=1; IconNull=0; P0=1; P1=1; P2=1; P3=1; P4=1; P5=1; P6=1; P7=1; P8=1; P9=1; P10=1; P11=1; P12=1; P13=1; P14=1; P15=1; P16=1; P17=1; P18=1; P19=1; P20=1; P21=1; P22=1; P23=1;-----------DAMIT-ES-FUNKTIONIERT------------[RahmenCalc]Measure=CalcFormula=(#IconNull# = 0 ? 1 : 0)DynamicVariables=1[Rahmen]Meter=ShapeShape=Path Pfad1 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,((100)*[RahmenCalc]) | Fill RadialGradient RahmenGradientPfad1=(450*#Scale#),(400*#Scale#) | LineTo (494*#Scale#),(427*#Scale#) | LineTo (494*#Scale#),(474*#Scale#) | LineTo (450*#Scale#),(500*#Scale#) | LineTo (406*#Scale#),(474*#Scale#) | LineTo (406*#Scale#),(427*#Scale#) | ClosePath 1RahmenGradient=0,0,0,0 | #Color2#,(10*[RahmenCalc]) ; 1.0 | #Color2#,(50*[RahmenCalc]) ; 0.0Shape2=Path Pfad2 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR0:]) | Fill Color 0,0,0,0Pfad2=(450*#Scale#),((400-(#DeltaY#*2))*#Scale#) | LineTo (494*#Scale#),((427-(#DeltaY#*2))*#Scale#) | LineTo (494*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo (450*#Scale#),((500-(#DeltaY#*2))*#Scale#) | LineTo (406*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo (406*#Scale#),((427-(#DeltaY#*2))*#Scale#) | ClosePath 1Shape3=Path Pfad3 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR1:]) | Fill Color 0,0,0,0Pfad3=(450*#Scale#),((400-(#DeltaY#*4))*#Scale#) | LineTo (494*#Scale#),((427-(#DeltaY#*4))*#Scale#) | LineTo (494*#Scale#),((474-(#DeltaY#*4))*#Scale#) | LineTo (450*#Scale#),((500-(#DeltaY#*4))*#Scale#) | LineTo (406*#Scale#),((474-(#DeltaY#*4))*#Scale#) | LineTo (406*#Scale#),((427-(#DeltaY#*4))*#Scale#) | ClosePath 1Shape4=Path Pfad4 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR2:]) | Fill Color 0,0,0,0Pfad4=((450+(#DeltaX#*1))*#Scale#),((400-(#DeltaY#*3))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*3))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*3))*#Scale#) | LineTo ((450+(#DeltaX#*1))*#Scale#),((500-(#DeltaY#*3))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*3))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*3))*#Scale#) | ClosePath 1Shape5=Path Pfad5 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR3:]) | Fill Color 0,0,0,0Pfad5=((450+(#DeltaX#*1))*#Scale#),((400-(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((450+(#DeltaX#*1))*#Scale#),((500-(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | ClosePath 1Shape6=Path Pfad6 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR4:]) | Fill Color 0,0,0,0Pfad6=((450+(#DeltaX#*2))*#Scale#),((400-(#DeltaY#*2))*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),((427-(#DeltaY#*2))*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo ((450+(#DeltaX#*2))*#Scale#),((500-(#DeltaY#*2))*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),((427-(#DeltaY#*2))*#Scale#) | ClosePath 1Shape7=Path Pfad7 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR5:]) | Fill Color 0,0,0,0Pfad7=((450+(#DeltaX#*3))*#Scale#),((400-(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*3))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*3))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((450+(#DeltaX#*3))*#Scale#),((500-(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*3))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*3))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | ClosePath 1Shape8=Path Pfad8 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR6:]) | Fill Color 0,0,0,0Pfad8=((450+(#DeltaX#*2))*#Scale#),(400*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),(427*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),(474*#Scale#) | LineTo ((450+(#DeltaX#*2))*#Scale#),(500*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),(474*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),(427*#Scale#) | ClosePath 1Shape9=Path Pfad9 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR7:]) | Fill Color 0,0,0,0Pfad9=((450+(#DeltaX#*4))*#Scale#),(400*#Scale#) | LineTo ((494+(#DeltaX#*4))*#Scale#),(427*#Scale#) | LineTo ((494+(#DeltaX#*4))*#Scale#),(474*#Scale#) | LineTo ((450+(#DeltaX#*4))*#Scale#),(500*#Scale#) | LineTo ((406+(#DeltaX#*4))*#Scale#),(474*#Scale#) | LineTo ((406+(#DeltaX#*4))*#Scale#),(427*#Scale#) | ClosePath 1Shape10=Path Pfad10 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR8:]) | Fill Color 0,0,0,0Pfad10=((450+(#DeltaX#*3))*#Scale#),((400+(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*3))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*3))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((450+(#DeltaX#*3))*#Scale#),((500+(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*3))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*3))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | ClosePath 1Shape11=Path Pfad11 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR9:]) | Fill Color 0,0,0,0Pfad11=((450+(#DeltaX#*1))*#Scale#),((400+(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((450+(#DeltaX#*1))*#Scale#),((500+(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | ClosePath 1Shape12=Path Pfad12 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR10:]) | Fill Color 0,0,0,0Pfad12=((450+(#DeltaX#*2))*#Scale#),((400+(#DeltaY#*2))*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),((427+(#DeltaY#*2))*#Scale#) | LineTo ((494+(#DeltaX#*2))*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo ((450+(#DeltaX#*2))*#Scale#),((500+(#DeltaY#*2))*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo ((406+(#DeltaX#*2))*#Scale#),((427+(#DeltaY#*2))*#Scale#) | ClosePath 1Shape13=Path Pfad13 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR11:]) | Fill Color 0,0,0,0Pfad13=((450+(#DeltaX#*1))*#Scale#),((400+(#DeltaY#*3))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*3))*#Scale#) | LineTo ((494+(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*3))*#Scale#) | LineTo ((450+(#DeltaX#*1))*#Scale#),((500+(#DeltaY#*3))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*3))*#Scale#) | LineTo ((406+(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*3))*#Scale#) | ClosePath 1Shape14=Path Pfad14 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR12:]) | Fill Color 0,0,0,0Pfad14=(450*#Scale#),((400+(#DeltaY#*2))*#Scale#) | LineTo (494*#Scale#),((427+(#DeltaY#*2))*#Scale#) | LineTo (494*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo (450*#Scale#),((500+(#DeltaY#*2))*#Scale#) | LineTo (406*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo (406*#Scale#),((427+(#DeltaY#*2))*#Scale#) | ClosePath 1Shape15=Path Pfad15 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR13:]) | Fill Color 0,0,0,0Pfad15=(450*#Scale#),((400+(#DeltaY#*4))*#Scale#) | LineTo (494*#Scale#),((427+(#DeltaY#*4))*#Scale#) | LineTo (494*#Scale#),((474+(#DeltaY#*4))*#Scale#) | LineTo (450*#Scale#),((500+(#DeltaY#*4))*#Scale#) | LineTo (406*#Scale#),((474+(#DeltaY#*4))*#Scale#) | LineTo (406*#Scale#),((427+(#DeltaY#*4))*#Scale#) | ClosePath 1Shape16=Path Pfad16 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR14:]) | Fill Color 0,0,0,0Pfad16=((450-(#DeltaX#*1))*#Scale#),((400+(#DeltaY#*3))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*3))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*3))*#Scale#) | LineTo ((450-(#DeltaX#*1))*#Scale#),((500+(#DeltaY#*3))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*3))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*3))*#Scale#) | ClosePath 1Shape17=Path Pfad17 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR15:]) | Fill Color 0,0,0,0Pfad17=((450-(#DeltaX#*1))*#Scale#),((400+(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((450-(#DeltaX#*1))*#Scale#),((500+(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | ClosePath 1Shape18=Path Pfad18 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR16:]) | Fill Color 0,0,0,0Pfad18=((450-(#DeltaX#*2))*#Scale#),((400+(#DeltaY#*2))*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),((427+(#DeltaY#*2))*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo ((450-(#DeltaX#*2))*#Scale#),((500+(#DeltaY#*2))*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),((474+(#DeltaY#*2))*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),((427+(#DeltaY#*2))*#Scale#) | ClosePath 1Shape19=Path Pfad19 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR17:]) | Fill Color 0,0,0,0Pfad19=((450-(#DeltaX#*3))*#Scale#),((400+(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*3))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*3))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((450-(#DeltaX#*3))*#Scale#),((500+(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*3))*#Scale#),((474+(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*3))*#Scale#),((427+(#DeltaY#*1))*#Scale#) | ClosePath 1Shape20=Path Pfad20 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR18:]) | Fill Color 0,0,0,0Pfad20=((450-(#DeltaX#*2))*#Scale#),(400*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),(427*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),(474*#Scale#) | LineTo ((450-(#DeltaX#*2))*#Scale#),(500*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),(474*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),(427*#Scale#) | ClosePath 1Shape21=Path Pfad21 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR19:]) | Fill Color 0,0,0,0Pfad21=((450-(#DeltaX#*4))*#Scale#),(400*#Scale#) | LineTo ((494-(#DeltaX#*4))*#Scale#),(427*#Scale#) | LineTo ((494-(#DeltaX#*4))*#Scale#),(474*#Scale#) | LineTo ((450-(#DeltaX#*4))*#Scale#),(500*#Scale#) | LineTo ((406-(#DeltaX#*4))*#Scale#),(474*#Scale#) | LineTo ((406-(#DeltaX#*4))*#Scale#),(427*#Scale#) | ClosePath 1Shape22=Path Pfad22 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR20:]) | Fill Color 0,0,0,0Pfad22=((450-(#DeltaX#*3))*#Scale#),((400-(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*3))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*3))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((450-(#DeltaX#*3))*#Scale#),((500-(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*3))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*3))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | ClosePath 1Shape23=Path Pfad23 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR21:]) | Fill Color 0,0,0,0Pfad23=((450-(#DeltaX#*1))*#Scale#),((400-(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((450-(#DeltaX#*1))*#Scale#),((500-(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*1))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*1))*#Scale#) | ClosePath 1Shape24=Path Pfad24 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR22:]) | Fill Color 0,0,0,0Pfad24=((450-(#DeltaX#*2))*#Scale#),((400-(#DeltaY#*2))*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),((427-(#DeltaY#*2))*#Scale#) | LineTo ((494-(#DeltaX#*2))*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo ((450-(#DeltaX#*2))*#Scale#),((500-(#DeltaY#*2))*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),((474-(#DeltaY#*2))*#Scale#) | LineTo ((406-(#DeltaX#*2))*#Scale#),((427-(#DeltaY#*2))*#Scale#) | ClosePath 1Shape25=Path Pfad25 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR23:]) | Fill Color 0,0,0,0Pfad25=((450-(#DeltaX#*1))*#Scale#),((400-(#DeltaY#*3))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*3))*#Scale#) | LineTo ((494-(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*3))*#Scale#) | LineTo ((450-(#DeltaX#*1))*#Scale#),((500-(#DeltaY#*3))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((474-(#DeltaY#*3))*#Scale#) | LineTo ((406-(#DeltaX#*1))*#Scale#),((427-(#DeltaY#*3))*#Scale#) | ClosePath 1Shape26=Combine Shape | Union Shape[PR0] | Union Shape[PR1] | Union Shape[PR2] | Union Shape[PR3] | Union Shape[PR4] | Union Shape[PR5] | Union Shape[PR6] | Union Shape[PR7] | Union Shape[PR8] | Union Shape[PR9] | Union Shape[PR10] | Union Shape[PR11] | Union Shape[PR12] | Union Shape[PR13] | Union Shape[PR14] | Union Shape[PR15] | Union Shape[PR16] | Union Shape[PR17] | Union Shape[PR18] | Union Shape[PR19] | Union Shape[PR20] | Union Shape[PR21] | Union Shape[PR22] | Union Shape[PR23]DynamicVariables=1AntiAlias=1[PR0]Measure=CalcFormula=(#P0# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"2","^0$":"x"DynamicVariables=1[PR1]Measure=CalcFormula=(#P1# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"3","^0$":"x"DynamicVariables=1[PR2]Measure=CalcFormula=(#P2# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"4","^0$":"x"DynamicVariables=1[PR3]Measure=CalcFormula=(#P3# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"5","^0$":"x"DynamicVariables=1[PR4]Measure=CalcFormula=(#P4# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"6","^0$":"x"DynamicVariables=1[PR5]Measure=CalcFormula=(#P5# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"7","^0$":"x"DynamicVariables=1[PR6]Measure=CalcFormula=(#P6# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"8","^0$":"x"DynamicVariables=1[PR7]Measure=CalcFormula=(#P7# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"9","^0$":"x"DynamicVariables=1[PR8]Measure=CalcFormula=(#P8# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"10","^0$":"x"DynamicVariables=1[PR9]Measure=CalcFormula=(#P9# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"11","^0$":"x"DynamicVariables=1[PR10]Measure=CalcFormula=(#P10# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"12","^0$":"x"DynamicVariables=1[PR11]Measure=CalcFormula=(#P11# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"13","^0$":"x"DynamicVariables=1[PR12]Measure=CalcFormula=(#P12# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"14","^0$":"x"DynamicVariables=1[PR13]Measure=CalcFormula=(#P13# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"15","^0$":"x"DynamicVariables=1[PR14]Measure=CalcFormula=(#P14# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"16","^0$":"x"DynamicVariables=1[PR15]Measure=CalcFormula=(#P15# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"17","^0$":"x"DynamicVariables=1[PR16]Measure=CalcFormula=(#P16# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"18","^0$":"x"DynamicVariables=1[PR17]Measure=CalcFormula=(#P17# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"19","^0$":"x"DynamicVariables=1[PR18]Measure=CalcFormula=(#P18# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"20","^0$":"x"DynamicVariables=1[PR19]Measure=CalcFormula=(#P19# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"21","^0$":"x"DynamicVariables=1[PR20]Measure=CalcFormula=(#P20# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"22","^0$":"x"DynamicVariables=1[PR21]Measure=CalcFormula=(#P21# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"23","^0$":"x"DynamicVariables=1[PR22]Measure=CalcFormula=(#P22# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"24","^0$":"x"DynamicVariables=1[PR23]Measure=CalcFormula=(#P23# = 1 ? 1 : 0)RegExpSubstitute=1Substitute="^1$":"25","^0$":"x"DynamicVariables=1
What a regular expresssion (nicknamed "regex" or "regexp") like "^1$":"20","^0$":"x" does is to use the start of the string (i.e. the ^ symbol) and the end of the string (i.e. the $ symbol) to restrict your substitutions to "1" and "0" alone. The issue you were experiencing happened because in your earlier [PR18] code, "1" was replaced with "20" alright in the 1st part of the Substitute (the one before the comma), but "20" contained an "0" itself, which triggered the 2nd part of the Substitute (the one after the comma) to replace that "0" in "20" with "x" as well, which resulted in "2x", regardless of whether the result of the Calc formula was "1" or "0". Matching ONLY the "1" or "0" ALONE when using a regular expression like the one above fixes the issue and the "0" in the "20" is not replaced with "x" anymore, only the "0" alone.

Regular expressions are just patterns made of normal / literal characters and various symbols, which are used to find or replace parts of a string. More information about it at:
https://en.wikipedia.org/wiki/Regular_expression
https://www.regular-expressions.info/
Or, if you want to test and play with them:
https://regex101.com/
https://regexr.com/
By the way, Rainmeter uses the PCRE flavor of the regular expressions, so this flavor must be chosen in the testing sites (the buttons at top left for regex101.com and top right for regexr.com) to get the results that you'd get in Rainmeter.

P.S. I have no idea about what happens in your launcher code, I only talked about your original code where you have this shape. I suppose this is how your launcher code uses the honeycomb structure as well... :???:

Statistics: Posted by Yincognito — Yesterday, 6:07 pm



Viewing all articles
Browse latest Browse all 2016

Trending Articles