It is currently April 18th, 2024, 3:11 pm

make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Get help with creating, editing & fixing problems with skins
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by eclectic-tech »

Rafamear wrote: November 16th, 2021, 12:21 am Is something wrong here? I tried to use it but it didn't work.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name=SystemVisualizer
Author=Rafamear
Information=Tiny Visualizer for your pc
Version=0.2
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[PlaceHolder]
Meter=Shape
Shape=Rectangle 5,5,100,100,8 | Fill Color 255,255,255 | StrokeWidth 5 | Stroke Color 0,255,0
LeftMouseUpAction=[!SetVariable PlaceHolderFill "200,45,20,255"][!SetVariable PlaceHolderFill "200,45,20,255" #VisualizerSys#Mini Simple System Monitoring.ini][!Refresh #CurrentConfig#]

Code: Select all

[PlaceHolder]
Meter=Shape
Shape=Rectangle 5,5,218,100,8 | Fill Color #PlaceholderFill# | StrokeWidth 5 | Stroke Color #PlaceholderStroke#
LeftMouseUpAction=[!SetVariable PlaceHolderFill "200,45,20,255"][!WriteKeyValue Variables PlaceHolderFill "200,45,20,255"][!Refresh]
You have to use the variable names in your shape meter.
You do not need to specify the file name, it writes to the current file by default.
Make sure #PlaceholderFill# and #PlaceHolderStroke# are defined in [Variables] section of the skin.

Code: Select all

[Variables]
PlaceholderFill=255,255,255
PlaceHolderStroke=0,0,0
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by Rafamear »

I want to change another skin, so I specified the filename, this is a separate skin from the one I want modified
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by David8192 »

Rafamear wrote: November 16th, 2021, 3:45 pm I want to change another skin, so I specified the filename, this is a separate skin from the one I want modified
Are you going to specify a number of colors to pick from or are you using colors from an image?
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
balala
Rainmeter Sage
Posts: 16143
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by balala »

Rafamear wrote: November 16th, 2021, 3:45 pm I want to change another skin, so I specified the filename, this is a separate skin from the one I want modified
Rainmeter identifies a skin by its config name, not at all by the name of the .ini file. This can be explained and understood easilly knowing that only one single skin (.ini file) can be loaded at a time from any config. There are extremely few bangs requiring the name of the file as a parameter (even if there indeed are a few). !SetVariable is not one of these.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by eclectic-tech »

:bow: {This is me, Bowing Out}

There are too many 'chefs' in this mix already!

To accomplish what the OP wants, they need to read the manual Basic Tutorials and have a general understanding of !SetVariable, !WriteKeyValue, @include files, variables, and 'escaped' variables.

Until then, the only way this will happen is if someone writes the entire code (not what I will do), and then explains how it all works. :x

Steps they need to take:
They need to decide where the variables for color will be saved when selected in the 'settings' skin, either in an 'included' variables file or the actual skin.

Then write (using !WriteKeyValue in the 'setting' skin) those values to the 'included' file or to the actual skin's [Variables] section.
Then refresh the skin(s) that use the updated variables.
The variables need to be in the meter color parameters, not hard-coded color values.

---

It sounds simple, but a general understanding of how things work will make it possible for the OP to modify any skin.
Sorry I can not help any more at this time... Best of luck. :rosegift:
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by Rafamear »

SystemVisualizer.rar
So how can I say this...? IT FINALLY WORKED,
but well, not like you said well,
i tried to use what i was really wanting, a setting.ini of another skin, i read its codes and understood that if i put all my RRR,GGG,BBB lines in a "variables3.ini" and do with that the skin would read them would work perfectly,
so in the other skin's own settings there was already a !WriteKeyValue that rewritten "variables3.ini" so with it rewriting variables3 and my skin reading variables3 did exactly what I wanted.
Which was to change the colors with a skin apart from "settings.ini" I'll show the lines of codes here and make the .rar available for them to take a look at

Code: Select all

[Rainmeter]
Update=-1
Name=SystemVisualizer
Author=Rafamear
Information=Tiny Visualizer for your pc
Version=0.1
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
@include=#@#Variables3.inc

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterShape]
Meter=Shape
X=0
Y=0
Shape=Rectangle 0,0,220,200 | Fill Color 0,0,0,200 | Stroke Color #MetersColor#

[MeterLine]
Meter=Image
SolidColor=#PlaceholderStroke#
X=197
Y=20
W=5
H=160

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterSettingsText2]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Quicksand Medium
FontColor=255,255,255
FontSize=15
X=10
Y=15
Text="Color Settings"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterColor1]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=35
Y=70
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,255,255,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor "251,251,251,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor2 "251,251,251,55" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceHolderFill "43,40,45,200" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceholderStroke "43,40,45" "#@#Variables3.inc"][!Refresh *]
ImageTint=43,40,45
ToolTipText="Click here to change Skin Color"

[MeterColor2]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,255,255,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor "43,40,45,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor2 "43,40,45,55" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceHolderFill "251,251,251,200" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceholderStroke "251,251,251,255" "#@#Variables3.inc"][!Refresh *]
ImageTint=255,255,255
ToolTipText="Click here to change Skin Color"

[MeterColor3]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,255,255,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor "251,251,251,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor2 "105,155,115,55" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceHolderFill "41,53,53,200" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceholderStroke "105,155,115" "#@#Variables3.inc"][!Refresh *]
ImageTint=105,155,115
ToolTipText="Click here to change Skin Color"

[MeterColor4]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "5,227,185,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor "5,227,185,255" "#@#Variables3.inc"][!WriteKeyValue Variables MetersColor2 "5,227,185,55" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceHolderFill "36,57,74,200" "#@#Variables3.inc"][!WriteKeyValue Variables PlaceholderStroke "27,47,66" "#@#Variables3.inc"][!Refresh *]
ImageTint=5,227,185,255
ToolTipText="Click here to change Skin Color"

[MeterColor5]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,102,0" "#@#Variables.inc"][!Refresh *]
ImageTint=255,102,0
ToolTipText="Click here to change Skin Color"

[MeterColor6]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=35
Y=30r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "204,0,0" "#@#Variables.inc"][!Refresh *]
ImageTint=204,0,0
ToolTipText="Click here to change Skin Color"

[MeterColor7]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "153,0,0" "#@#Variables.inc"][!Refresh *]
ImageTint=153,0,0
ToolTipText="Click here to change Skin Color"

[MeterColor8]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "204,102,153" "#@#Variables.inc"][!Refresh *]
ImageTint=204,102,153
ToolTipText="Click here to change Skin Color"

[MeterColor9]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,0,153" "#@#Variables.inc"][!Refresh *]
ImageTint=255,0,153
ToolTipText="Click here to change Skin Color"

[MeterColor10]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "153,0,255" "#@#Variables.inc"][!Refresh *]
ImageTint=153,0,255
ToolTipText="Click here to change Skin Color"

[MeterColor11]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=35
Y=30r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "153,204,0" "#@#Variables.inc"][!Refresh *]
ImageTint=153,204,0
ToolTipText="Click here to change Skin Color"

[MeterColor12]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "51,153,0" "#@#Variables.inc"][!Refresh *]
ImageTint=51,153,0
ToolTipText="Click here to change Skin Color"

[MeterColor13]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "36,255,0" "#@#Variables.inc"][!Refresh *]
ImageTint=36,255,0
ToolTipText="Click here to change Skin Color"

[MeterColor14]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "2,95,255" "#@#Variables.inc"][!Refresh *]
ImageTint=2,95,255
ToolTipText="Click here to change Skin Color"

[MeterColor15]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "2,238,251" "#@#Variables.inc"][!Refresh *]
ImageTint=2,238,251
ToolTipText="Click here to change Skin Color"

Code: Select all

[Variables]

FontColor=255,255,255,255 
MetersColor=251,251,251,255         
MetersColor2=105,155,115,55
PlaceHolderFill=41,53,53,200
PlaceholderStroke=105,155,115

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name=SystemVisualizer
Author=Rafamear
Information=Tiny Visualizer for your pc
Version=0.3
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]

@include=#@#Variables3.inc

NoOfIncrements=4
Radius=13
Thickness=2.5
FontSize=10

Width=44
TotalHeight=22
TopHeight=18
MaxUpload=983040
MaxDownload=4096000

FontName=Quicksand Medium
FontName2=Quicksand Medium
FontHeight=12
AntiAlias=1

; ----Measures----

[MeasureNetOut]
Measure=NetOut
Interface=Best
MinValue=0
MaxValue=#MaxUpload#

[MeasureNetIn]
Measure=NetIn
Interface=Best
MinValue=0
MaxValue=#MaxDownload#

[MeasureRAM]
Measure=PhysicalMemory
UpdateDivider=5

; ----Styles----

[StyleCircle]
StartAngle=4.70796326
RotationAngle=-6.28318531
W=(1.5*#Radius#)
H=(2*#Radius#)
LineStart=#Radius#
LineLength=(#Radius#-#Thickness#)
Solid=1
AntiAlias=1
LineColor=#MetersColor#

[StyleFullCircle]
StartAngle=-1.570796326
RotationAngle=6.28318531
W=(1.5*#Radius#)
H=(2*#Radius#)
LineStart=#Radius#
LineLength=(#Radius#-#Thickness#)
Solid=1
AntiAlias=1
LineColor=#MetersColor2#

[StyleCPUText]
FontSize=#FontSize#
FontFace=Quicksand Medium
FontColor=#FontColor#
StringAlign=CenterCenter
AntiAlias=1
NumOfDecimals=0

; -------------PlaceHolder-----------------

[PlaceHolder]
Meter=Shape
Shape=Rectangle 5,5,218,100,8 | Fill Color #PlaceholderFill# | StrokeWidth 5 | Stroke Color #PlaceholderStroke#

; -------------CPU1-----------------

[MeterCPULabel]
Meter=STRING
Text="CPU"
X=38
Y=80
FontColor=#FontColor#
FontFace=Quicksand Bold
FontSize=11
AntiAlias=1

[MeasureCPU1]
Measure=CPU 
Processor=1

[MeasureTemp1]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=(1-1)
	
[CPU1Circle]
Meter=Roundline
MeasureName=MeasureCPU1
MeterStyle=StyleCircle
X=25
Y=20

[CPU1FullCircle]
Meter=Roundline
MeterStyle=StyleFullCircle
X=0r
Y=20

[CPU1Text]
Meter=String
MeasureName=MeasureTemp1
MeterStyle=StyleCPUText
X=34
Y=33

; -------------CPU2-----------------

[MeasureCPU2]
Measure=CPU
Processor=2

[MeasureTemp2]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=(2-1)

[CPU2Circle]
Meter=Roundline
MeasureName=MeasureCPU2
MeterStyle=StyleCircle
X=61
Y=20

[CPU2FullCircle]
Meter=Roundline
MeterStyle=StyleFullCircle
X=0r
Y=20

[CPU2Text]
Meter=String
MeasureName=MeasureTemp2
MeterStyle=StyleCPUText
X=70
Y=33

; -------------CPU3-----------------

[MeasureCPU3]
Measure=CPU
Processor=3

[MeasureTemp3]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=(3-1)
	
[CPU3Circle]
Meter=Roundline
MeasureName=MeasureCPU3
MeterStyle=StyleCircle
Y=55
X=25

[CPU3FullCircle]
Meter=Roundline
MeterStyle=StyleFullCircle
Y=55
X=25

[CPU3Text]
Meter=String
MeasureName=MeasureTemp3
MeterStyle=StyleCPUText
Y=69
X=34

; -------------CPU4-----------------

[MeasureCPU4]
Measure=CPU
Processor=4

[MeasureTemp4]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=(4-1)

[CPU4Circle]
Meter=Roundline
MeasureName=MeasureCPU4
MeterStyle=StyleCircle
X=61
Y=55

[CPU4FullCircle]
Meter=Roundline
MeterStyle=StyleFullCircle
X=0r
Y=55

[CPU4Text]
Meter=String
MeasureName=MeasureTemp4
MeterStyle=StyleCPUText
X=70
Y=69

; -------------RAM-----------------

[MeterPercent]
Meter=STRING
MeasureName=MeasureRAM
StringAlign=RIGHT
X=213
Y=5
FontColor=#FontColor#
FontSize=10
FontFace=#FontName2#
AntiAlias=1
Text="%1%"
Percentual=1
AutoScale=1

[MeterRAMLabel]
Meter=STRING
Text="RAM"
X=103
Y=5
FontColor=#FontColor#
FontSize=10
FontFace=#FontName#
AntiAlias=1

[MeterRAMcorel]
Meter=STRING
Text="1"
X=98
Y=20
FontColor=#FontColor#
FontSize=7
FontFace=#FontName#
AntiAlias=1

[MeterRAMcore2]
Meter=STRING
Text="2"
X=97
Y=29
FontColor=#FontColor#
FontSize=7
FontFace=#FontName#
AntiAlias=1

[MeterRAMcore3]
Meter=STRING
Text="3"
X=97
Y=38
FontColor=#FontColor#
FontSize=7
FontFace=#FontName#
AntiAlias=1

[MeterRAMcore4]
Meter=STRING
Text="4"
X=96
Y=46
FontColor=#FontColor#
FontSize=7
FontFace=#FontName#
AntiAlias=1

; -------Individual-RAM-measures----------

[MeasureRAM]
Measure=PhysicalMemory

[MeasureRAMTotal]
Measure=PhysicalMemory
Total=1

[MeasureRAMIncrement]
Measure=Calc
Formula=(MeasureRAMTotal / #NoOfIncrements#)

[MeasureRAM1]
Measure=Calc
Formula=MeasureRAM
MinValue=0
MaxValue=[MeasureRAMIncrement]
DynamicVariables=1

[MeasureRAM2]
Measure=Calc
Formula=(MeasureRAM - (MeasureRAMTotal / #NoOfIncrements#))
MinValue=0
MaxValue=[MeasureRAMIncrement]
DynamicVariables=1

[MeasureRAM3]
BarOrientation=HORIZONTAL
Measure=Calc
Formula=(MeasureRAM - (2 * (MeasureRAMTotal / #NoOfIncrements#)))
MinValue=0
MaxValue=[MeasureRAMIncrement]
DynamicVariables=1

[MeasureRAM4]
Measure=Calc
Formula=(MeasureRAM - (3 * (MeasureRAMTotal / #NoOfIncrements#)))
MinValue=0
MaxValue=[MeasureRAMIncrement]
DynamicVariables=1

; ----StylesRAM----

[StyleRAMBar]
H=5
W=110
BarOrientation=HORIZONTAL
DynamicVariables=1
BarColor=#MetersColor#
SolidColor=#MetersColor2#

; ----RAM-Bars----

[RAMBar1]
Meter=Bar
MeasureName=MeasureRAM1
MeterStyle=StyleRAMBar
X=104
Y=25
[RAMBar2]
Meter=Bar
MeasureName=MeasureRAM2
MeterStyle=StyleRAMBar
X=104
Y=34

[RAMBar3]
Meter=Bar
MeasureName=MeasureRAM3
MeterStyle=StyleRAMBar
X=104
Y=43

[RAMBar4]
Meter=Bar
MeasureName=MeasureRAM4Bar
MeterStyle=StyleRAMBar
X=104
Y=52

; ----Network----

[MeterNetworkLabel]
Meter=STRING
Text="Network"
X=131
Y=75
FontColor=#FontColor#
FontSize=10
FontFace=#FontName#
AntiAlias=1

[StyleLine]
X=109
Y=100
W=100
LineColor=#MetersColor#
AutoAlias=1

; Lines

[MeterNetOutLine]
MeasureName=MeasureNetOut
Meter=Line
MeterStyle=StyleLine
Y=69
H=(#TotalHeight#-#TopHeight#)
Flip=1
	; Flip=1 for line at top
	; remove/Flip=0 for line at bottom

[MeterNetInLine]
MeasureName=MeasureNetIn
Meter=Line
MeterStyle=StyleLine
Y=75
H=#TopHeight#
Flip=0
	; Flip=1 for line at top
	; remove/Flip=0 for line at bottom

You do not have the required permissions to view the files attached to this post.
Last edited by Rafamear on November 18th, 2021, 12:05 pm, edited 1 time in total.
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by Rafamear »

SystemVisualizer.rar
now... I have another problem, the "[!Refresh *]" I used it in settings.ini to reload after applying the color changes but sometimes my rainmeter crashes and closes and I wanted to find a way to refresh it a specific skin
:confused:
You do not have the required permissions to view the files attached to this post.
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by death.crafter »

Rafamear wrote: November 18th, 2021, 12:02 pm SystemVisualizer.rarnow... I have another problem, the "[!Refresh *]" I used it in settings.ini to reload after applying the color changes but sometimes my rainmeter crashes and closes and I wanted to find a way to refresh it a specific skin
:confused:
[!Refresh "Config\Name"]
from the Realm of Death
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: make the "LeftMouseUpAction=" rewrite the "255,255,255,255" of another skin

Post by Rafamear »

Thank you so much, I think that's all I wanted to do in this skin it's already been done, it's finished, thanks everyone for your help!
:D
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================