It is currently April 27th, 2024, 6:55 pm

SOLVED: Problem with combining shapes

Get help with creating, editing & fixing problems with skins
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

SOLVED: Problem with combining shapes

Post by Hagart »

Hallo there, i got a problem with a shape, that i can't combine right. There are 25 shapes and for some reason the 18. is not combined like the other ones. i can't find the problem.

Here is the code:

Code: Select all

[Rainmeter]
Update=-1
BackgroundMode=2
SolidColor=0,0,0,0
DynamicWindowSize=1
AccurateText=1
Group=Rahmen
OnRefreshAction=[!Delay 300][!Move ((#FEXM#+50)*#Scale#) ((#FEYM#+50)*#Scale#)]

;-------------------INFOS--------------------

[Metadata]
Name=Infos
Author=Hagart
Information=***Rahmen für die aktiven Launcher***
License=
Version=1.01.05

;-----------------VARIABELN------------------

[Variables]
@include=#@#Variables.inc
Scale=#Skala#
DeltaX=35
DeltaY=60

;-----------DAMIT-ES-FUNKTIONIERT------------

[RahmenCalc]
Measure=Calc
Formula=(#IconNull# = 0 ? 1 : 0)
DynamicVariables=1

[Rahmen]
Meter=Shape
Shape=Path Pfad1 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,((100)*[RahmenCalc]) | Fill RadialGradient RahmenGradient
Pfad1=(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 1
RahmenGradient=0,0,0,0 | #Color2#,(10*[RahmenCalc]) ; 1.0 | #Color2#,(50*[RahmenCalc]) ; 0.0
Shape2=Path Pfad2 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR0:]) | Fill Color 0,0,0,0
Pfad2=(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 1
Shape3=Path Pfad3 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR1:]) | Fill Color 0,0,0,0
Pfad3=(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 1
Shape4=Path Pfad4 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR2:]) | Fill Color 0,0,0,0
Pfad4=((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 1
Shape5=Path Pfad5 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR3:]) | Fill Color 0,0,0,0
Pfad5=((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 1
Shape6=Path Pfad6 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR4:]) | Fill Color 0,0,0,0
Pfad6=((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 1
Shape7=Path Pfad7 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR5:]) | Fill Color 0,0,0,0
Pfad7=((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 1
Shape8=Path Pfad8 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR6:]) | Fill Color 0,0,0,0
Pfad8=((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 1
Shape9=Path Pfad9 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR7:]) | Fill Color 0,0,0,0
Pfad9=((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 1
Shape10=Path Pfad10 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR8:]) | Fill Color 0,0,0,0
Pfad10=((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 1
Shape11=Path Pfad11 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR9:]) | Fill Color 0,0,0,0
Pfad11=((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 1
Shape12=Path Pfad12 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR10:]) | Fill Color 0,0,0,0
Pfad12=((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 1
Shape13=Path Pfad13 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR11:]) | Fill Color 0,0,0,0
Pfad13=((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 1
Shape14=Path Pfad14 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR12:]) | Fill Color 0,0,0,0
Pfad14=(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 1
Shape15=Path Pfad15 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR13:]) | Fill Color 0,0,0,0
Pfad15=(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 1
Shape16=Path Pfad16 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR14:]) | Fill Color 0,0,0,0
Pfad16=((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 1
Shape17=Path Pfad17 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR15:]) | Fill Color 0,0,0,0
Pfad17=((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 1
Shape18=Path Pfad18 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR16:]) | Fill Color 0,0,0,0
Pfad18=((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 1
Shape19=Path Pfad19 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR17:]) | Fill Color 0,0,0,0
Pfad19=((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 1
Shape20=Path Pfad20 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR18:]) | Fill Color 0,0,0,0
Pfad20=((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 1
Shape21=Path Pfad21 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR19:]) | Fill Color 0,0,0,0
Pfad21=((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 1
Shape22=Path Pfad22 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR20:]) | Fill Color 0,0,0,0
Pfad22=((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 1
Shape23=Path Pfad23 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR21:]) | Fill Color 0,0,0,0
Pfad23=((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 1
Shape24=Path Pfad24 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR22:]) | Fill Color 0,0,0,0
Pfad24=((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 1
Shape25=Path Pfad25 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR23:]) | Fill Color 0,0,0,0
Pfad25=((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 1
Shape26=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=1
AntiAlias=1

[PR0]
Measure=Calc
Formula=(#P0# = 1 ? 1 : 0)
Substitute="1":"2","0":"x"
DynamicVariables=1

[PR1]
Measure=Calc
Formula=(#P1# = 1 ? 1 : 0)
Substitute="1":"3","0":"x"
DynamicVariables=1

[PR2]
Measure=Calc
Formula=(#P2# = 1 ? 1 : 0)
Substitute="1":"4","0":"x"
DynamicVariables=1

[PR3]
Measure=Calc
Formula=(#P3# = 1 ? 1 : 0)
Substitute="1":"5","0":"x"
DynamicVariables=1

[PR4]
Measure=Calc
Formula=(#P4# = 1 ? 1 : 0)
Substitute="1":"6","0":"x"
DynamicVariables=1

[PR5]
Measure=Calc
Formula=(#P5# = 1 ? 1 : 0)
Substitute="1":"7","0":"x"
DynamicVariables=1

[PR6]
Measure=Calc
Formula=(#P6# = 1 ? 1 : 0)
Substitute="1":"8","0":"x"
DynamicVariables=1

[PR7]
Measure=Calc
Formula=(#P7# = 1 ? 1 : 0)
Substitute="1":"9","0":"x"
DynamicVariables=1

[PR8]
Measure=Calc
Formula=(#P8# = 1 ? 1 : 0)
Substitute="1":"10","0":"x"
DynamicVariables=1

[PR9]
Measure=Calc
Formula=(#P9# = 1 ? 1 : 0)
Substitute="1":"11","0":"x"
DynamicVariables=1

[PR10]
Measure=Calc
Formula=(#P10# = 1 ? 1 : 0)
Substitute="1":"12","0":"x"
DynamicVariables=1

[PR11]
Measure=Calc
Formula=(#P11# = 1 ? 1 : 0)
Substitute="1":"13","0":"x"
DynamicVariables=1

[PR12]
Measure=Calc
Formula=(#P12# = 1 ? 1 : 0)
Substitute="1":"14","0":"x"
DynamicVariables=1

[PR13]
Measure=Calc
Formula=(#P13# = 1 ? 1 : 0)
Substitute="1":"15","0":"x"
DynamicVariables=1

[PR14]
Measure=Calc
Formula=(#P14# = 1 ? 1 : 0)
Substitute="1":"16","0":"x"
DynamicVariables=1

[PR15]
Measure=Calc
Formula=(#P15# = 1 ? 1 : 0)
Substitute="1":"17","0":"x"
DynamicVariables=1

[PR16]
Measure=Calc
Formula=(#P16# = 1 ? 1 : 0)
Substitute="1":"18","0":"x"
DynamicVariables=1

[PR17]
Measure=Calc
Formula=(#P17# = 1 ? 1 : 0)
Substitute="1":"19","0":"x"
DynamicVariables=1

[PR18]
Measure=Calc
Formula=(#P18# = 1 ? 1 : 0)
Substitute="1":"20","0":"x"
DynamicVariables=1

[PR19]
Measure=Calc
Formula=(#P19# = 1 ? 1 : 0)
Substitute="1":"21","0":"x"
DynamicVariables=1

[PR20]
Measure=Calc
Formula=(#P20# = 1 ? 1 : 0)
Substitute="1":"22","0":"x"
DynamicVariables=1

[PR21]
Measure=Calc
Formula=(#P21# = 1 ? 1 : 0)
Substitute="1":"23","0":"x"
DynamicVariables=1

[PR22]
Measure=Calc
Formula=(#P22# = 1 ? 1 : 0)
Substitute="1":"24","0":"x"
DynamicVariables=1

[PR23]
Measure=Calc
Formula=(#P23# = 1 ? 1 : 0)
Substitute="1":"25","0":"x"
DynamicVariables=1
The calcs at the end ist to check if there is a active Launcher in the position (the #P0# to #P23# numbers are in the separate "Variables.inc"-file). If there is one the shape is shown and combined, if not then i used the "x" so the shape is not combined with the other ones. I also used the calcs to set the Stroke alpha to 0 like this "#Color1#,(100*[PR0:])"

Its all working well, but not the 18. shape (see picture below). I don‘t see the problem. Hope someone of you can help me with this problem. Thanks in advance.

https://freeimage.host/i/J7iTHrb
Last edited by Hagart on January 10th, 2024, 5:16 pm, edited 2 times in total.
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

Re: Problem with combining shapes

Post by Hagart »

The selfmade honeycomb-launchers set the #Pn#-variables in the „Variables.inc“-file to 1, when the new position is set (directly via launcher) and the old position to 0 when leaving a position.

Some further explanations of the code:

The "OnRefreshAction" in the Rainmeter section is just for the positioning of the skin in relation to a central skin (that whrites its position via #FEXM# and #FEYM# in the "Variables.inc"-file when moved).

The "Group=Rahmen" is just to refresh the skin, when a launcher changes its position.

The #IconNull#-variable is also located in the „Variables.inc“-file and is set to 0 when the central skin (that determines the position of the shapes with the launchers in it) is not active and set to 1 when active. I used that to make the shape disapear when the central skin is active (e.g." Stroke Color #Color1#,((100)*[RahmenCalc])"). In this case the launchers are alining around the central skin. They are only in the related positions of the shape when the central skin in deactivated.

The #Skala#, #Color1# and #Color2# are also in the "Variables.inc"-file.
Last edited by Hagart on January 10th, 2024, 3:54 pm, edited 1 time in total.
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

Re: Problem with combining shapes

Post by Hagart »

Here ist the code of a launcher (e.g. Youtube):
(Not part of the problem, but if someone like to see how it looks)

Code: Select all

[Rainmeter]
Update=-1
BackgroundMode=2
SolidColor=0,0,0,0
DynamicWindowSize=1
AccurateText=1
Group=Icons
ContextTitle="Einstellungen"
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "Settings.ini"]
ContextTitle2="Position wählen, 24h"
ContextAction2=[!PluginBang "InputPos ExecuteBatch 1"][!SetVariable "AlphaPos" "255"]
OnRefreshAction=[!Delay 300][!Move (#FEXM#+(([PositionsRechnerX]-50)*#Scale#)) (#FEYM#+(([PositionsRechnerY]-50)*#Scale#))][!WriteKeyValue Variables P#Position# "1""#@#Variables.inc"][!RefreshGroup "Rahmen"]
OnCloseAction=[!WriteKeyValue Variables P#Position# "0""#@#Variables.inc"][!RefreshGroup "Icons"][!RefreshGroup "Rahmen"]

;-------------------INFOS--------------------

[Metadata]
Name=Launcher
Author=Hagart
Information=***Launcher für Apps, Links ect.***||Rechtsklick auf Icon "Position wählen, 24h"|24 Stunden entlang der Uhr (z.B. 6 ist rechts).||Für komplette Anpassungen, Rechtsklick "Skin bearbeiten"|und bei "Einstellungen" nach Wunsch anpassen.|Das passende Icon dann in den "@Resources"-Ordner kopieren.
License=
Version=3.14.02

[Variables]
@include=#@#Variables.inc
Scale=#Skala#

;---------------EINSTELLUNGEN----------------

; Angaben anpassen, Speichern und mit Rechtsklick den Launcher aktualisieren.

Name=Youtube
Bild=#@#\Youtube.png
Link="["https://www.youtube.com/"]"

;-----------------VARIABELN------------------

V=[!UpdateMeasure Animation][!Update][!Redraw]
N=0
Dreh=0
AnimS=0
AnimP=0
AnimT=0
AnimD=0
AlphaText=0
AlphaPos=0
TintIcon=#Color1#
Druck=0
Status=1
Position=2
PositionAlt=23
NullX=500
NullY=540
InputSize=12
DeltaX=35
DeltaY=60

;-----------DAMIT-ES-FUNKTIONIERT------------

[MeasureRegistry]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Control Panel\Desktop\WindowMetrics
RegValue=AppliedDPI
UpdateDivider=-1

[InputTextFontSize]
Measure=Calc
Formula=((#InputSize#-(((#InputSize#*(((ROUND(([MeasureRegistry]/100)/0.25)))*0.25))-#InputSize#)/2))-((#InputSize#-(((#InputSize#*(((ROUND(([MeasureRegistry]/100)/0.25)))*0.25))-#InputSize#)/2))%1))
DynamicVariables=1

[Animation]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Gross, 10, 20
ActionList2=Repeat Klein, 2, 20
Gross=[!SetVariable N "(Clamp((#N#+1),0,20))"][!SetVariable AnimS "(trunc(40*(1-1/(128**(0.05*#N#)))))"][!SetVariable Dreh "(trunc(122*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimP "(trunc(20*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimT "(trunc(16*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimD "(trunc(1.5*(1-1/(128**(0.05*#N#)))))"][!SetVariable AlphaText "(trunc(240*(1-1/(128**(0.05*#N#)))))"][!SetVariable TintIcon "#Color2#"]#V#
Klein=[!SetVariable N "(Clamp((#N#-1),0,20))"][!SetVariable AnimS "(trunc(#AnimS#*(1-1/(128**(0.05*#N#)))))"][!SetVariable Dreh "(trunc(#Dreh#*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimP "(trunc(#AnimP#*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimT "(trunc(#AnimT#*(1-1/(128**(0.05*#N#)))))"][!SetVariable AnimD "(trunc(#AnimD#*(1-1/(128**(0.05*#N#)))))"][!SetVariable AlphaText "(trunc(#AlphaText#*(1-1/(128**(0.05*#N#)))))"][!SetVariable TintIcon "#Color1#"]#V#
DynamicVariables=1

[Wabe]
Meter=Shape
Shape=Path MyPath1 | StrokeWidth ((1*#Scale#)*((2+(#Druck#/140))+#AnimD#)) | Stroke Color #TintIcon#,(150-#AnimP#+#Druck#) | Fill RadialGradient WabenGradient1 | Rotate #Dreh#
MyPath1=(50*#Scale#),((20-#AnimP#)*#Scale#) | LineTo ((76+(#AnimP#*0.85))*#Scale#),((36-(#AnimP#*0.5))*#Scale#) | LineTo ((76+(#AnimP#*0.85))*#Scale#),((65+(#AnimP#*0.5))*#Scale#) | LineTo (50*#Scale#),((80+#AnimP#)*#Scale#) | LineTo ((24-(#AnimP#*0.85))*#Scale#),((65+(#AnimP#*0.5))*#Scale#) | LineTo ((24-(#AnimP#*0.85))*#Scale#),((36-(#AnimP#*0.5))*#Scale#) | ClosePath 1
WabenGradient1=0,0,0,0 | #Color2#,(22+#AnimP#+#Druck#) ; 1.0 | #Color2#,(42+#AnimP#+#Druck#) ; 0.5 | #Color2#,(62+#AnimP#+#Druck#) ; 0.2
Shape2=Path MyPath2 | StrokeWidth ((1*#Scale#)*((2+(#Druck#/140))+#AnimD#)) | Stroke Color #TintIcon#,((#AnimP#*3)+#Druck#) | Fill Color #Color2#,0 | Rotate #Dreh#
MyPath2=(50*#Scale#),((26-#AnimP#)*#Scale#) | LineTo ((71+(#AnimP#*0.85))*#Scale#),((39-(#AnimP#*0.5))*#Scale#) | LineTo ((71+(#AnimP#*0.85))*#Scale#),((62+(#AnimP#*0.5))*#Scale#) | LineTo (50*#Scale#),((74+#AnimP#)*#Scale#) | LineTo ((29-(#AnimP#*0.85))*#Scale#),((62+(#AnimP#*0.5))*#Scale#) | LineTo ((29-(#AnimP#*0.85))*#Scale#),((39-(#AnimP#*0.5))*#Scale#) | ClosePath 1
Shape3=Path MyPath3 | StrokeWidth ((1*#Scale#)*((2+(#Druck#/140))+#AnimD#)) | Stroke Color #TintIcon#,((#AnimP#*2)+#Druck#) | Fill Color #Color2#,0 | Rotate #Dreh#
MyPath3=(50*#Scale#),((32-#AnimP#)*#Scale#) | LineTo ((66+(#AnimP#*0.85))*#Scale#),((42-(#AnimP#*0.5))*#Scale#) | LineTo ((66+(#AnimP#*0.85))*#Scale#),((59+(#AnimP#*0.5))*#Scale#) | LineTo (50*#Scale#),((68+#AnimP#)*#Scale#) | LineTo ((34-(#AnimP#*0.85))*#Scale#),((59+(#AnimP#*0.5))*#Scale#) | LineTo ((34-(#AnimP#*0.85))*#Scale#),((42-(#AnimP#*0.5))*#Scale#) | ClosePath 1
Shape4=Path MyPath4 | StrokeWidth ((1*#Scale#)*((2+(#Druck#/140))+#AnimD#)) | Stroke Color #TintIcon#,(#AnimP#+#Druck#) | Fill Color #Color2#,0 | Rotate #Dreh#
MyPath4=(50*#Scale#),((38-#AnimP#)*#Scale#) | LineTo ((61+(#AnimP#*0.85))*#Scale#),((45-(#AnimP#*0.5))*#Scale#) | LineTo ((61+(#AnimP#*0.85))*#Scale#),((56+(#AnimP#*0.5))*#Scale#) | LineTo (50*#Scale#),((62+#AnimP#)*#Scale#) | LineTo ((39-(#AnimP#*0.85))*#Scale#),((56+(#AnimP#*0.5))*#Scale#) | LineTo ((39-(#AnimP#*0.85))*#Scale#),((45-(#AnimP#*0.5))*#Scale#) | ClosePath 1
Shape5=Path MyPath5 | StrokeWidth ((1*#Scale#)*((2+(#Druck#/140))+#AnimD#)) | Stroke Color #TintIcon#,((#AnimP#/2)+#Druck#) | Fill Color #Color2#,0 | Rotate #Dreh#
MyPath5=(50*#Scale#),((44-#AnimP#)*#Scale#) | LineTo ((56+(#AnimP#*0.85))*#Scale#),((48-(#AnimP#*0.5))*#Scale#) | LineTo ((56+(#AnimP#*0.85))*#Scale#),((53+(#AnimP#*0.5))*#Scale#) | LineTo (50*#Scale#),((56+#AnimP#)*#Scale#) | LineTo ((44-(#AnimP#*0.85))*#Scale#),((53+(#AnimP#*0.5))*#Scale#) | LineTo ((44-(#AnimP#*0.85))*#Scale#),((48-(#AnimP#*0.5))*#Scale#) | ClosePath 1
LeftMouseUpAction=[!SetVariable "Druck" "70"][!Update]#Link#[!Delay 200][!SetVariable "Druck" "0"][!Update]
MouseOverAction=[!CommandMeasure "Animation" "Execute #Status#"][!SetVariable "Status" "(3-#Status#)"][!Update]
MouseLeaveAction=[!CommandMeasure "Animation" "Execute #Status#"][!SetVariable "Status" "(3-#Status#)"][!Update]
DynamicVariables=1
AntiAlias=1

[Image]
Meter=Image
ImageName=#Bild#
W=((60+#AnimS#)*#Scale#)
H=((60+#AnimS#)*#Scale#)
X=((20-#AnimP#)*#Scale#)
Y=((20-#AnimP#)*#Scale#)
ImageTint=#TintIcon#,(150-#AnimP#+#Druck#)
DynamicVariables=1
AntiAlias=1

[Text]
Meter=String
Text=#Name#
StringAlign=CenterCenter
X=(50*#Scale#)
Y=(50*#Scale#)
FontFace=Glacial Indifference
InlineSetting=Shadow | ((2.8-(0.04*#Druck#))*#Scale#) | ((2.8-(0.04*#Druck#))*#Scale#) | ((2.8+(0.16*#Druck#))*#Scale#) | (45+(#Druck#*3)),(45+(#Druck#*3)),(45+(#Druck#*3)),(#AlphaText#/2)
FontColor=#Color1#,#AlphaText#
FontWeight=800
FontSize=((4+#AnimT#)*#Scale#)
DynamicVariables=1
AntiAlias=1

;-----------------POSITION-------------------

[PositionsRechnerX]
Measure=Calc
Formula=(#IconNull# = 0 ? 0 : 1)
Substitute="0":"(#NullX#)","1":"((490-#IconRadius#)*COS(((2*PI)/24)*(18+#Position#))+500)"
DynamicVariables=1

[PositionsRechnerNullX]
Measure=Calc
IfCondition=(#Position# = 0)
IfTrueAction=[!SetVariable "NullX" "500"][!Update][!Redraw]
IfCondition2=(#Position# = 1)
IfTrueAction2=[!SetVariable "NullX" "500"][!Update][!Redraw]
IfCondition3=(#Position# = 2)
IfTrueAction3=[!SetVariable "NullX" "(500+(#DeltaX#*1))"][!Update][!Redraw]
IfCondition4=(#Position# = 3)
IfTrueAction4=[!SetVariable "NullX" "(500+(#DeltaX#*1))"][!Update][!Redraw]
IfCondition5=(#Position# = 4)
IfTrueAction5=[!SetVariable "NullX" "(500+(#DeltaX#*2))"][!Update][!Redraw]
IfCondition6=(#Position# = 5)
IfTrueAction6=[!SetVariable "NullX" "(500+(#DeltaX#*3))"][!Update][!Redraw]
IfCondition7=(#Position# = 6)
IfTrueAction7=[!SetVariable "NullX" "(500+(#DeltaX#*2))"][!Update][!Redraw]
IfCondition8=(#Position# = 7)
IfTrueAction8=[!SetVariable "NullX" "(500+(#DeltaX#*4))"][!Update][!Redraw]
IfCondition9=(#Position# = 8)
IfTrueAction9=[!SetVariable "NullX" "(500+(#DeltaX#*3))"][!Update][!Redraw]
IfCondition10=(#Position# = 9)
IfTrueAction10=[!SetVariable "NullX" "(500+(#DeltaX#*1))"][!Update][!Redraw]
IfCondition11=(#Position# = 10)
IfTrueAction11=[!SetVariable "NullX" "(500+(#DeltaX#*2))"][!Update][!Redraw]
IfCondition12=(#Position# = 11)
IfTrueAction12=[!SetVariable "NullX" "(500+(#DeltaX#*1))"][!Update][!Redraw]
IfCondition13=(#Position# = 12)
IfTrueAction13=[!SetVariable "NullX" "500"][!Update][!Redraw]
IfCondition14=(#Position# = 13)
IfTrueAction14=[!SetVariable "NullX" "500"][!Update][!Redraw]
IfCondition15=(#Position# = 14)
IfTrueAction15=[!SetVariable "NullX" "(500-(#DeltaX#*1))"][!Update][!Redraw]
IfCondition16=(#Position# = 15)
IfTrueAction16=[!SetVariable "NullX" "(500-(#DeltaX#*1))"][!Update][!Redraw]
IfCondition17=(#Position# = 16)
IfTrueAction17=[!SetVariable "NullX" "(500-(#DeltaX#*2))"][!Update][!Redraw]
IfCondition18=(#Position# = 17)
IfTrueAction18=[!SetVariable "NullX" "(500-(#DeltaX#*3))"][!Update][!Redraw]
IfCondition19=(#Position# = 18)
IfTrueAction19=[!SetVariable "NullX" "(500-(#DeltaX#*2))"][!Update][!Redraw]
IfCondition20=(#Position# = 19)
IfTrueAction20=[!SetVariable "NullX" "(500-(#DeltaX#*4))"][!Update][!Redraw]
IfCondition21=(#Position# = 20)
IfTrueAction21=[!SetVariable "NullX" "(500-(#DeltaX#*3))"][!Update][!Redraw]
IfCondition22=(#Position# = 21)
IfTrueAction22=[!SetVariable "NullX" "(500-(#DeltaX#*1))"][!Update][!Redraw]
IfCondition23=(#Position# = 22)
IfTrueAction23=[!SetVariable "NullX" "(500-(#DeltaX#*2))"][!Update][!Redraw]
IfCondition24=(#Position# = 23)
IfTrueAction24=[!SetVariable "NullX" "(500-(#DeltaX#*1))"][!Update][!Redraw]
IfCondition25=(#Position# = 24)
IfTrueAction25=[!SetVariable "NullX" "500"][!Update][!Redraw]
DynamicVariables=1

[PositionsRechnerY]
Measure=Calc
Formula=(#IconNull# = 0 ? 0 : 1)
Substitute="0":"(#NullY#)","1":"((490-#IconRadius#)*SIN(((2*PI)/24)*(18+#Position#))+500)"
DynamicVariables=1

[PositionsRechnerNullY]
Measure=Calc
IfCondition=(#Position# = 0)
IfTrueAction=[!SetVariable "NullY" "(500-(#DeltaY#*2))"][!Update][!Redraw]
IfCondition2=(#Position# = 1)
IfTrueAction2=[!SetVariable "NullY" "(500-(#DeltaY#*4))"][!Update][!Redraw]
IfCondition3=(#Position# = 2)
IfTrueAction3=[!SetVariable "NullY" "(500-(#DeltaY#*3))"][!Update][!Redraw]
IfCondition4=(#Position# = 3)
IfTrueAction4=[!SetVariable "NullY" "(500-(#DeltaY#*1))"][!Update][!Redraw]
IfCondition5=(#Position# = 4)
IfTrueAction5=[!SetVariable "NullY" "(500-(#DeltaY#*2))"][!Update][!Redraw]
IfCondition6=(#Position# = 5)
IfTrueAction6=[!SetVariable "NullY" "(500-(#DeltaY#*1))"][!Update][!Redraw]
IfCondition7=(#Position# = 6)
IfTrueAction7=[!SetVariable "NullY" "500"][!Update][!Redraw]
IfCondition8=(#Position# = 7)
IfTrueAction8=[!SetVariable "NullY" "500"][!Update][!Redraw]
IfCondition9=(#Position# = 8)
IfTrueAction9=[!SetVariable "NullY" "(500+(#DeltaY#*1))"][!Update][!Redraw]
IfCondition10=(#Position# = 9)
IfTrueAction10=[!SetVariable "NullY" "(500+(#DeltaY#*1))"][!Update][!Redraw]
IfCondition11=(#Position# = 10)
IfTrueAction11=[!SetVariable "NullY" "(500+(#DeltaY#*2))"][!Update][!Redraw]
IfCondition12=(#Position# = 11)
IfTrueAction12=[!SetVariable "NullY" "(500+(#DeltaY#*3))"][!Update][!Redraw]
IfCondition13=(#Position# = 12)
IfTrueAction13=[!SetVariable "NullY" "(500+(#DeltaY#*2))"][!Update][!Redraw]
IfCondition14=(#Position# = 13)
IfTrueAction14=[!SetVariable "NullY" "(500+(#DeltaY#*4))"][!Update][!Redraw]
IfCondition15=(#Position# = 14)
IfTrueAction15=[!SetVariable "NullY" "(500+(#DeltaY#*3))"][!Update][!Redraw]
IfCondition16=(#Position# = 15)
IfTrueAction16=[!SetVariable "NullY" "(500+(#DeltaY#*1))"][!Update][!Redraw]
IfCondition17=(#Position# = 16)
IfTrueAction17=[!SetVariable "NullY" "(500+(#DeltaY#*2))"][!Update][!Redraw]
IfCondition18=(#Position# = 17)
IfTrueAction18=[!SetVariable "NullY" "(500+(#DeltaY#*1))"][!Update][!Redraw]
IfCondition19=(#Position# = 18)
IfTrueAction19=[!SetVariable "NullY" "500"][!Update][!Redraw]
IfCondition20=(#Position# = 19)
IfTrueAction20=[!SetVariable "NullY" "500"][!Update][!Redraw]
IfCondition21=(#Position# = 20)
IfTrueAction21=[!SetVariable "NullY" "(500-(#DeltaY#*1))"][!Update][!Redraw]
IfCondition22=(#Position# = 21)
IfTrueAction22=[!SetVariable "NullY" "(500-(#DeltaY#*1))"][!Update][!Redraw]
IfCondition23=(#Position# = 22)
IfTrueAction23=[!SetVariable "NullY" "(500-(#DeltaY#*2))"][!Update][!Redraw]
IfCondition24=(#Position# = 23)
IfTrueAction24=[!SetVariable "NullY" "(500-(#DeltaY#*3))"][!Update][!Redraw]
IfCondition25=(#Position# = 24)
IfTrueAction25=[!SetVariable "NullY" "(500-(#DeltaY#*2))"][!Update][!Redraw]
DynamicVariables=1

[PosPunkte]
Meter=Shape
Shape=Ellipse (50*#Scale#),(50*#Scale#),(32*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 0,110,220,#AlphaPos#
Shape2=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*1),(34*#Scale#),(34*#Scale#)
Shape3=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*2),(34*#Scale#),(34*#Scale#)
Shape4=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*3),(34*#Scale#),(34*#Scale#)
Shape5=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*4),(34*#Scale#),(34*#Scale#)
Shape6=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*5),(34*#Scale#),(34*#Scale#)
Shape7=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*6),(34*#Scale#),(34*#Scale#)
Shape8=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*7),(34*#Scale#),(34*#Scale#)
Shape9=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*8),(34*#Scale#),(34*#Scale#)
Shape10=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*9),(34*#Scale#),(34*#Scale#)
Shape11=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*10),(34*#Scale#),(34*#Scale#)
Shape12=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*11),(34*#Scale#),(34*#Scale#)
Shape13=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*12),(34*#Scale#),(34*#Scale#)
Shape14=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*13),(34*#Scale#),(34*#Scale#)
Shape15=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*14),(34*#Scale#),(34*#Scale#)
Shape16=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*15),(34*#Scale#),(34*#Scale#)
Shape17=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*16),(34*#Scale#),(34*#Scale#)
Shape18=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*17),(34*#Scale#),(34*#Scale#)
Shape19=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*18),(34*#Scale#),(34*#Scale#)
Shape20=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*19),(34*#Scale#),(34*#Scale#)
Shape21=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*20),(34*#Scale#),(34*#Scale#)
Shape22=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*21),(34*#Scale#),(34*#Scale#)
Shape23=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*22),(34*#Scale#),(34*#Scale#)
Shape24=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*23),(34*#Scale#),(34*#Scale#)
Shape25=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color 255,255,255,(#AlphaPos#/2) | Fill Color 255,255,255,(#AlphaPos#/2) | Rotate (15*24),(34*#Scale#),(34*#Scale#)
Shape26=Ellipse (21*#Scale#),(21*#Scale#),(4*#Scale#) | StrokeWidth (2*#Scale#) | Stroke Color #Color2#,#AlphaPos# | Fill Color #Color2#,(#AlphaPos#/2) | Rotate (15*(3+#Position#)),(34*#Scale#),(34*#Scale#)
DynamicVariables=1
AntiAlias=1

[PosEingabe]
Meter=String
StringAlign=CenterCenter
FontFace=Glacial Indifference
FontColor=255,255,255,#AlphaPos#
FontSize=(12*#Scale#)
FontWeight=800
X=(50*#Scale#)
Y=(54*#Scale#)
Text=Position#CRLF#     Uhr
InlineSetting=Shadow | (2.8*#Scale#) | (2.8*#Scale#) | (4.0*#Scale#) | 40,40,40,(#AlphaPos#/2)
DynamicVariables=1
AntiAlias=1

[InputPos]
Measure=Plugin
Plugin=InputText.dll
StringAlign=CenterCenter
FontFace=Glacial Indifference
FontColor=255,255,255,#AlphaPos#
FontSize=([InputTextFontSize]*#Scale#)
FontWeight=800
SolidColor=0,110,220,255
X=(29*#Scale#)
Y=(53*#Scale#)
W=(18*#Scale#)
H=(20*#Scale#)
FocusDismiss=1
Command1=[!WriteKeyValue Variables PositionAlt #Position#][!WriteKeyValue Variables Position "$UserInput$"][!WriteKeyValue Variables P#Position# "1""#@#Variables.inc"][!SetVariable "AlphaPos" "0"][!WriteKeyValue Variables P#Position# "0""#@#Variables.inc"][!RefreshGroup "Rahmen"][!RefreshGroup "Icons"]
OnDismissAction=[!RefreshGroup "Icons"]
DefaultValue="#Position#"
DynamicVariables=1
AntiAlias=1
And here ist the "Youtube.png" i use for this launcher:

https://freeimage.host/i/J7iknoB
Last edited by Hagart on January 10th, 2024, 5:16 pm, edited 2 times in total.
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Problem with combining shapes

Post by Yincognito »

Hagart wrote: January 10th, 2024, 3:03 pm Hallo there, i got a problem with a shape, that i can't combine right. There are 25 shapes and for some reason the 18. is not combined like the other ones. i can't find the problem.

[...]

The calcs at the end ist to check if there is a active Launcher in the position (the #P0# to #P23# numbers are in the separate "Variables.inc"-file). If there is one the shape is shown and combined, if not then i used the "x" so the shape is not combined with the other ones. I also used the calcs to set the Stroke alpha to 0 like this "#Color1#,(100*[PR0:])"

Its all working well, but not the 18. shape (see picture below). I don‘t see the problem. Hope someone of you can help me with this problem. Thanks in advance.

https://freeimage.host/i/J7iTHrb
Check the substitution in [PR18], there's an error in your logic there and this is why that measure yields "2x" instead of the desired "20". Also, that problem exists in [PR8] as well, where you get "1x" instead of the desired "10". Use the About > Skins tab window to check the values for your measures and variables.

Also, next time you post code, please use the </> button (i.e. the 5th button above your message box) to post code. The code should be enclosed by [​code] and [​/code] tags in the message (use the Preview button to test how it looks).

One other thing - you should have included Variables.inc along with your code, as it's the only dependency of the initial code (i.e. the only external file that code is referencing). The launcher itself is not important, since the problem is with the shape. ;-)

EDIT: The code I worked with (no dependency, just a quick overwrite of the issues to show the result):

Code: Select all

[Rainmeter]
Update=-1
BackgroundMode=2
SolidColor=0,0,0,0
DynamicWindowSize=1
AccurateText=1
Group=Rahmen
;OnRefreshAction=[!Delay 300][!Move ((#FEXM#+50)*#Scale#) ((#FEYM#+50)*#Scale#)]

;-------------------INFOS--------------------

[Metadata]
Name=Infos
Author=Hagart
Information=***Rahmen für die aktiven Launcher***
License=
Version=1.01.05

;-----------------VARIABELN------------------

[Variables]
;@include=#@#Variables.inc
;Scale=#Skala#
Scale=1
DeltaX=35
DeltaY=60
Color1=255,255,255
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=Calc
Formula=(#IconNull# = 0 ? 1 : 0)
DynamicVariables=1

[Rahmen]
Meter=Shape
Shape=Path Pfad1 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,((100)*[RahmenCalc]) | Fill RadialGradient RahmenGradient
Pfad1=(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 1
RahmenGradient=0,0,0,0 | #Color2#,(10*[RahmenCalc]) ; 1.0 | #Color2#,(50*[RahmenCalc]) ; 0.0
Shape2=Path Pfad2 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR0:]) | Fill Color 0,0,0,0
Pfad2=(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 1
Shape3=Path Pfad3 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR1:]) | Fill Color 0,0,0,0
Pfad3=(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 1
Shape4=Path Pfad4 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR2:]) | Fill Color 0,0,0,0
Pfad4=((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 1
Shape5=Path Pfad5 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR3:]) | Fill Color 0,0,0,0
Pfad5=((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 1
Shape6=Path Pfad6 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR4:]) | Fill Color 0,0,0,0
Pfad6=((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 1
Shape7=Path Pfad7 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR5:]) | Fill Color 0,0,0,0
Pfad7=((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 1
Shape8=Path Pfad8 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR6:]) | Fill Color 0,0,0,0
Pfad8=((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 1
Shape9=Path Pfad9 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR7:]) | Fill Color 0,0,0,0
Pfad9=((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 1
Shape10=Path Pfad10 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR8:]) | Fill Color 0,0,0,0
Pfad10=((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 1
Shape11=Path Pfad11 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR9:]) | Fill Color 0,0,0,0
Pfad11=((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 1
Shape12=Path Pfad12 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR10:]) | Fill Color 0,0,0,0
Pfad12=((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 1
Shape13=Path Pfad13 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR11:]) | Fill Color 0,0,0,0
Pfad13=((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 1
Shape14=Path Pfad14 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR12:]) | Fill Color 0,0,0,0
Pfad14=(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 1
Shape15=Path Pfad15 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR13:]) | Fill Color 0,0,0,0
Pfad15=(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 1
Shape16=Path Pfad16 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR14:]) | Fill Color 0,0,0,0
Pfad16=((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 1
Shape17=Path Pfad17 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR15:]) | Fill Color 0,0,0,0
Pfad17=((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 1
Shape18=Path Pfad18 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR16:]) | Fill Color 0,0,0,0
Pfad18=((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 1
Shape19=Path Pfad19 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR17:]) | Fill Color 0,0,0,0
Pfad19=((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 1
Shape20=Path Pfad20 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR18:]) | Fill Color 0,0,0,0
Pfad20=((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 1
Shape21=Path Pfad21 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR19:]) | Fill Color 0,0,0,0
Pfad21=((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 1
Shape22=Path Pfad22 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR20:]) | Fill Color 0,0,0,0
Pfad22=((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 1
Shape23=Path Pfad23 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR21:]) | Fill Color 0,0,0,0
Pfad23=((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 1
Shape24=Path Pfad24 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR22:]) | Fill Color 0,0,0,0
Pfad24=((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 1
Shape25=Path Pfad25 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR23:]) | Fill Color 0,0,0,0
Pfad25=((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 1
Shape26=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=1
AntiAlias=1

[PR0]
Measure=Calc
Formula=(#P0# = 1 ? 1 : 0)
Substitute="1":"2","0":"x"
DynamicVariables=1

[PR1]
Measure=Calc
Formula=(#P1# = 1 ? 1 : 0)
Substitute="1":"3","0":"x"
DynamicVariables=1

[PR2]
Measure=Calc
Formula=(#P2# = 1 ? 1 : 0)
Substitute="1":"4","0":"x"
DynamicVariables=1

[PR3]
Measure=Calc
Formula=(#P3# = 1 ? 1 : 0)
Substitute="1":"5","0":"x"
DynamicVariables=1

[PR4]
Measure=Calc
Formula=(#P4# = 1 ? 1 : 0)
Substitute="1":"6","0":"x"
DynamicVariables=1

[PR5]
Measure=Calc
Formula=(#P5# = 1 ? 1 : 0)
Substitute="1":"7","0":"x"
DynamicVariables=1

[PR6]
Measure=Calc
Formula=(#P6# = 1 ? 1 : 0)
Substitute="1":"8","0":"x"
DynamicVariables=1

[PR7]
Measure=Calc
Formula=(#P7# = 1 ? 1 : 0)
Substitute="1":"9","0":"x"
DynamicVariables=1

[PR8]
Measure=Calc
Formula=10
;Formula=(#P8# = 1 ? 1 : 0)
;Substitute="1":"10","0":"x"
DynamicVariables=1

[PR9]
Measure=Calc
Formula=(#P9# = 1 ? 1 : 0)
Substitute="1":"11","0":"x"
DynamicVariables=1

[PR10]
Measure=Calc
Formula=(#P10# = 1 ? 1 : 0)
Substitute="1":"12","0":"x"
DynamicVariables=1

[PR11]
Measure=Calc
Formula=(#P11# = 1 ? 1 : 0)
Substitute="1":"13","0":"x"
DynamicVariables=1

[PR12]
Measure=Calc
Formula=(#P12# = 1 ? 1 : 0)
Substitute="1":"14","0":"x"
DynamicVariables=1

[PR13]
Measure=Calc
Formula=(#P13# = 1 ? 1 : 0)
Substitute="1":"15","0":"x"
DynamicVariables=1

[PR14]
Measure=Calc
Formula=(#P14# = 1 ? 1 : 0)
Substitute="1":"16","0":"x"
DynamicVariables=1

[PR15]
Measure=Calc
Formula=(#P15# = 1 ? 1 : 0)
Substitute="1":"17","0":"x"
DynamicVariables=1

[PR16]
Measure=Calc
Formula=(#P16# = 1 ? 1 : 0)
Substitute="1":"18","0":"x"
DynamicVariables=1

[PR17]
Measure=Calc
Formula=(#P17# = 1 ? 1 : 0)
Substitute="1":"19","0":"x"
DynamicVariables=1

[PR18]
Measure=Calc
Formula=20
;Formula=(#P18# = 1 ? 1 : 0)
;Substitute="1":"20","0":"x"
DynamicVariables=1

[PR19]
Measure=Calc
Formula=(#P19# = 1 ? 1 : 0)
Substitute="1":"21","0":"x"
DynamicVariables=1

[PR20]
Measure=Calc
Formula=(#P20# = 1 ? 1 : 0)
Substitute="1":"22","0":"x"
DynamicVariables=1

[PR21]
Measure=Calc
Formula=(#P21# = 1 ? 1 : 0)
Substitute="1":"23","0":"x"
DynamicVariables=1

[PR22]
Measure=Calc
Formula=(#P22# = 1 ? 1 : 0)
Substitute="1":"24","0":"x"
DynamicVariables=1

[PR23]
Measure=Calc
Formula=(#P23# = 1 ? 1 : 0)
Substitute="1":"25","0":"x"
DynamicVariables=1
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

Re: Problem with combining shapes

Post by Hagart »

Thank you so much for your help, have an nice day :welcome:
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Problem with combining shapes

Post by Yincognito »

Hagart wrote: January 10th, 2024, 5:14 pm Thank you so much for your help, have an nice day :welcome:
You're welcome. Not sure how you solved the problem, but it can be done by using regular expressions, like:

Code: Select all

RegExpSubstitute=1
Substitute="^1$":"20","^0$":"x"
and similar (this is for your [PR18] measure, by the way).
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

Re: SOLVED: Problem with combining shapes

Post by Hagart »

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:
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: SOLVED: Problem with combining shapes

Post by Yincognito »

Hagart wrote: January 10th, 2024, 5:34 pm 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: Select all

[Rainmeter]
Update=-1
BackgroundMode=2
SolidColor=0,0,0,0
DynamicWindowSize=1
AccurateText=1
Group=Rahmen
OnRefreshAction=[!Delay 300][!Move ((#FEXM#+50)*#Scale#) ((#FEYM#+50)*#Scale#)]

;-------------------INFOS--------------------

[Metadata]
Name=Infos
Author=Hagart
Information=***Rahmen für die aktiven Launcher***
License=
Version=1.01.05

;-----------------VARIABELN------------------

[Variables]
@include=#@#Variables.inc
Scale=#Skala#
DeltaX=35
DeltaY=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=Calc
Formula=(#IconNull# = 0 ? 1 : 0)
DynamicVariables=1

[Rahmen]
Meter=Shape
Shape=Path Pfad1 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,((100)*[RahmenCalc]) | Fill RadialGradient RahmenGradient
Pfad1=(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 1
RahmenGradient=0,0,0,0 | #Color2#,(10*[RahmenCalc]) ; 1.0 | #Color2#,(50*[RahmenCalc]) ; 0.0
Shape2=Path Pfad2 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR0:]) | Fill Color 0,0,0,0
Pfad2=(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 1
Shape3=Path Pfad3 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR1:]) | Fill Color 0,0,0,0
Pfad3=(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 1
Shape4=Path Pfad4 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR2:]) | Fill Color 0,0,0,0
Pfad4=((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 1
Shape5=Path Pfad5 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR3:]) | Fill Color 0,0,0,0
Pfad5=((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 1
Shape6=Path Pfad6 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR4:]) | Fill Color 0,0,0,0
Pfad6=((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 1
Shape7=Path Pfad7 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR5:]) | Fill Color 0,0,0,0
Pfad7=((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 1
Shape8=Path Pfad8 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR6:]) | Fill Color 0,0,0,0
Pfad8=((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 1
Shape9=Path Pfad9 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR7:]) | Fill Color 0,0,0,0
Pfad9=((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 1
Shape10=Path Pfad10 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR8:]) | Fill Color 0,0,0,0
Pfad10=((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 1
Shape11=Path Pfad11 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR9:]) | Fill Color 0,0,0,0
Pfad11=((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 1
Shape12=Path Pfad12 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR10:]) | Fill Color 0,0,0,0
Pfad12=((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 1
Shape13=Path Pfad13 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR11:]) | Fill Color 0,0,0,0
Pfad13=((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 1
Shape14=Path Pfad14 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR12:]) | Fill Color 0,0,0,0
Pfad14=(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 1
Shape15=Path Pfad15 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR13:]) | Fill Color 0,0,0,0
Pfad15=(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 1
Shape16=Path Pfad16 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR14:]) | Fill Color 0,0,0,0
Pfad16=((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 1
Shape17=Path Pfad17 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR15:]) | Fill Color 0,0,0,0
Pfad17=((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 1
Shape18=Path Pfad18 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR16:]) | Fill Color 0,0,0,0
Pfad18=((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 1
Shape19=Path Pfad19 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR17:]) | Fill Color 0,0,0,0
Pfad19=((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 1
Shape20=Path Pfad20 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR18:]) | Fill Color 0,0,0,0
Pfad20=((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 1
Shape21=Path Pfad21 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR19:]) | Fill Color 0,0,0,0
Pfad21=((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 1
Shape22=Path Pfad22 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR20:]) | Fill Color 0,0,0,0
Pfad22=((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 1
Shape23=Path Pfad23 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR21:]) | Fill Color 0,0,0,0
Pfad23=((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 1
Shape24=Path Pfad24 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR22:]) | Fill Color 0,0,0,0
Pfad24=((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 1
Shape25=Path Pfad25 | StrokeWidth (1*#Scale#) | Stroke Color #Color1#,(100*[PR23:]) | Fill Color 0,0,0,0
Pfad25=((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 1
Shape26=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=1
AntiAlias=1

[PR0]
Measure=Calc
Formula=(#P0# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"2","^0$":"x"
DynamicVariables=1

[PR1]
Measure=Calc
Formula=(#P1# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"3","^0$":"x"
DynamicVariables=1

[PR2]
Measure=Calc
Formula=(#P2# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"4","^0$":"x"
DynamicVariables=1

[PR3]
Measure=Calc
Formula=(#P3# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"5","^0$":"x"
DynamicVariables=1

[PR4]
Measure=Calc
Formula=(#P4# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"6","^0$":"x"
DynamicVariables=1

[PR5]
Measure=Calc
Formula=(#P5# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"7","^0$":"x"
DynamicVariables=1

[PR6]
Measure=Calc
Formula=(#P6# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"8","^0$":"x"
DynamicVariables=1

[PR7]
Measure=Calc
Formula=(#P7# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"9","^0$":"x"
DynamicVariables=1

[PR8]
Measure=Calc
Formula=(#P8# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"10","^0$":"x"
DynamicVariables=1

[PR9]
Measure=Calc
Formula=(#P9# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"11","^0$":"x"
DynamicVariables=1

[PR10]
Measure=Calc
Formula=(#P10# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"12","^0$":"x"
DynamicVariables=1

[PR11]
Measure=Calc
Formula=(#P11# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"13","^0$":"x"
DynamicVariables=1

[PR12]
Measure=Calc
Formula=(#P12# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"14","^0$":"x"
DynamicVariables=1

[PR13]
Measure=Calc
Formula=(#P13# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"15","^0$":"x"
DynamicVariables=1

[PR14]
Measure=Calc
Formula=(#P14# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"16","^0$":"x"
DynamicVariables=1

[PR15]
Measure=Calc
Formula=(#P15# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"17","^0$":"x"
DynamicVariables=1

[PR16]
Measure=Calc
Formula=(#P16# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"18","^0$":"x"
DynamicVariables=1

[PR17]
Measure=Calc
Formula=(#P17# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"19","^0$":"x"
DynamicVariables=1

[PR18]
Measure=Calc
Formula=(#P18# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"20","^0$":"x"
DynamicVariables=1

[PR19]
Measure=Calc
Formula=(#P19# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"21","^0$":"x"
DynamicVariables=1

[PR20]
Measure=Calc
Formula=(#P20# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"22","^0$":"x"
DynamicVariables=1

[PR21]
Measure=Calc
Formula=(#P21# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"23","^0$":"x"
DynamicVariables=1

[PR22]
Measure=Calc
Formula=(#P22# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^1$":"24","^0$":"x"
DynamicVariables=1

[PR23]
Measure=Calc
Formula=(#P23# = 1 ? 1 : 0)
RegExpSubstitute=1
Substitute="^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... :???:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Hagart
Posts: 12
Joined: October 18th, 2023, 11:44 am

Re: SOLVED: Problem with combining shapes

Post by Hagart »

Thank you for the explanation and thank you very much for the code. Now everything works as it should :D
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: SOLVED: Problem with combining shapes

Post by Yincognito »

Hagart wrote: January 11th, 2024, 10:04 am Thank you for the explanation and thank you very much for the code. Now everything works as it should :D
You're welcome, glad it worked. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth