It is currently March 29th, 2024, 6:55 am

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

Get help with creating, editing & fixing problems with skins
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

balala wrote: November 15th, 2021, 6:50 pm Post the whole code of your skin, please.
I'll send the code of the skin itself and the "settings menu" in which I was making the base for my own, I'm using these skins precisely because I'll only be using it, but I'm still thinking about releasing something official
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

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

[Variables]
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
FontColor=255,255,255,255          
MetersColor=251,251,251,255
MetersColor2=105,155,115,55
FontHeight=12
AntiAlias=1

;#FontColor# 
;#MetersColor# 
;#MetersColor2#

PlaceHolderFill=41,53,53,200
PlaceholderStroke=105,155,115

; ----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]
Meter=Shape
Shape=Rectangle 5,5,218,100,8 | Fill Color #PlaceholderFill# | StrokeWidth 5 | Stroke Color #PlaceholderStroke#

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

[MeterClick]
Meter=Image
X=10
Y=46
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables FontColor "255,255,255,255"][!Refresh *]
LeftMouseDownAction=[!SetVariable PlaceholderStroke "105,155,115"][!WriteKeyValue Variables PlaceholderStroke "105,155,115"][!WriteKeyValue Variables MetersColor "251,251,251,255"][!WriteKeyValue Variables MetersColor2 "105,155,115,55"]

LeftMouseUpAction=[!WriteKeyValue Variables MetersColor2 "105,155,115,55"]
LeftMouseDownAction=[!WriteKeyValue StyleFullCircle LineColor "5,227,185,15"]

[MeterClick2]
Meter=Image
X=10
Y=66
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables FontColor "5,227,185,255"][!Refresh *]
LeftMouseDownAction=[!SetVariable PlaceholderStroke "27,47,66"][!WriteKeyValue Variables PlaceholderStroke "27,47,66"][!WriteKeyValue Variables MetersColor "5,227,185,255"][!WriteKeyValue Variables MetersColor2 "5,227,185,55"]

; -------------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

; Styles

[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

;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

and the Settings menu that I wanted to use the color cubes and the player

Code: Select all

[Rainmeter]
Update=-1
Author=-HipHopium-


[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc

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

[MeterShape]
Meter=Shape
X=0
Y=0
Shape=Rectangle 0,0,620,430 | Fill Color 0,0,0,200 | Stroke Color #FontColor#

[MeterLine]
Meter=Image
SolidColor=#FontColor#
X=380
Y=0
W=1
H=430

[MeterLine2]
Meter=Image
SolidColor=#FontColor#
X=380
Y=200
W=240
H=1

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

[MeterSettingsText]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Calibri
FontColor=255,255,255
FontSize=15
X=30
Y=15
Text="Weather And Language Settings"
AntiAlias=1

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

[MeterSettingsText3]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Calibri
FontColor=255,255,255
FontSize=15
X=430
Y=210
Text="Player Settings"
AntiAlias=1

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

[MeterWeatherCode]
Meter=String
StringAlign=Left
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=60
Y=110
Text=Enter Location Code Here ->
AntiAlias=1

[MeterCode]
Meter=String
StringAlign=Center
FontFace=Calibri
FontColor=2,238,251
FontSize=12
X=250r
Y=0r
Text=#Location#
AntiAlias=1
ToolTipText=Type your weather "Location Code" and press the "Enter" key to Apply changes.
LeftMouseUpAction=[!PluginBang "MeterInput ExecuteBatch 1"]

[MeterInput]
Measure=Plugin
Plugin=InputText.dll
X=273
Y=112
W=95
H=20
StringAlign=Left
FontFace=Calibri
AntiAlias=1
FontSize=12
FocusDismiss=1
Command1=[!WriteKeyValue Variables Location "$UserInput$""#@#Variables.inc"][!RainmeterRefreshApp]
DefaultValue="#Location#"

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

[MeterLocationFind]
Meter=String
StringAlign=Left
FontFace=Calibri
FontColor=255,255,255
FontSize=12
X=60
Y=80
Text=Find Your Code Here -> 
AntiAlias=1

[MeterLocationCode]
Meter=Image
ImageName=#@#Location.png
X=260r
Y=-12r
W=30
AntiAlias=1
ToolTipText="Find your weather "Location Code" on this site."
LeftMouseDownAction=["https://weather.codes/"]

[MeterLanguage]
Meter=String
StringAlign=Left
FontFace=Calibri
FontColor=255,255,255
FontSize=12
X=60
Y=140
Text=Enter Language Here -> 
AntiAlias=1

[MeterCode2]
Meter=String
StringAlign=Center
FontColor=2,238,251
FontFace=Calibri
FontSize=12
X=250r
Y=0r
Text=#Language#
AntiAlias=1
ToolTipText=Type your "Language" and press the "Enter" key to Apply changes.#CRLF#Suported languages for now::Czech,English,French,German,Greek,Italian,#CRLF#Polish,Russian,Serbian,Spanish,Turkish,Croatian,#CRLF#Dutch (NL),Swedish,Hungarian,Latvian,Chinese,Portuguese (BR),#CRLF#Catalan (Català).
LeftMouseUpAction=[!PluginBang "MeterInput2 ExecuteBatch 1"]

[MeterInput2]
Measure=Plugin
Plugin=InputText.dll
X=280
Y=141
W=95
H=20
StringAlign=Left
FontSize=12
FocusDismiss=1
AntiAlias=1
Command1=[!WriteKeyValue Variables Language "$UserInput$""#@#Variables.inc"][!RainmeterRefreshApp] 
DefaultValue="#Language#"


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

[MeterInstructionText]
Meter=String
MeterStyle=Style
FontFace=Calibri
FontColor=255,255,255
FontSize=12
X=60
Y=175
Text=Translate Instruction -> 
AntiAlias=1

[MeterBookIcon]
Meter=IMAGE
ImageName=#@#Book.png
X=260r
Y=-3r
W=30
ToolTipText="Click here to see,how to translate to your language"
LeftMouseUpAction=!Execute ["#ROOTCONFIGPATH#@Resources\Language\YourLanguage.inc"]
PreserveAspectRatio=1

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

[PlayerNameMediaMonkey]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=240
Text=MediaMonkey
MouseOverAction=[!ShowMeter MeterMediaMonkeyLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterMediaMonkeyLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player MediaMonkey "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterMediaMonkeyLineHover]
Meter=String
X=420
Y=260
W=100
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameiTunes]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=265
Text=iTunes
MouseOverAction=[!ShowMeter MeteriTunesLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeteriTunesLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player iTunes "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeteriTunesLineHover]
Meter=String
X=420
Y=285
W=60
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameWMP]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=290
Text=Windows Media Player
MouseOverAction=[!ShowMeter MeterWMPLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterWMPLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player WMP "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterWMPLineHover]
Meter=String
X=420
Y=310
W=160
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameWinamp]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=315
Text=Winamp
MouseOverAction=[!ShowMeter MeterWinampLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterWinampLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player Winamp "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterWinampLineHover]
Meter=String
X=420
Y=335
W=60
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameFoobar2000]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=340
Text=Foobar2000
MouseOverAction=[!ShowMeter MeterFoobar2000LineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterFoobar2000LineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player CAD "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterFoobar2000LineHover]
Meter=String
X=420
Y=360
W=90
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameAimp]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=365
Text=AIMP
MouseOverAction=[!ShowMeter MeterAimpLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterAimpLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player AIMP "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterAimpLineHover]
Meter=String
X=420
Y=385
W=45
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

[PlayerNameMusicBee]
Meter=String
FontColor=255,255,255
FontFace=Calibri
FontSize=12
X=420
Y=390
Text=MusicBee
MouseOverAction=[!ShowMeter MeterMusicBeeLineHover][!Redraw]
MouseLeaveAction=[!HideMeter MeterMusicBeeLineHover][!Redraw]
LeftMouseDownAction=!Execute [!WriteKeyValue Variables Player CAD "#@#Variables.inc"][!Refresh *]
AntiAlias=1

[MeterMusicBeeLineHover]
Meter=String
X=420
Y=410
W=75
H=2
SolidColor=#FontColor#
AntiAlias=1
Hidden=1

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

[MeterCelsiusButtonPassive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontColor=#FontColor#
X=60
Y=250
Text=Celsius (C°)
SolidColor=0,0,0,1
AntiAlias=1
MouseOverAction=!Execute [!ShowMeter MeterCelsiusButtonActive][!HideMeter MeterCelsiusButtonPassive][!Update]

[MeterCelsiusButtonActive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontWeight=800
FontColor=255,255,255
X=r
Y=r
Text=> Celsius (C°)
SolidColor=0,0,0,1
AntiAlias=1
Hidden=1
InlineSetting=Shadow | 0 | 0 | 4.5 | 254,255,214
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Unit "m" "#@#Variables.inc"][!ShowMeter MeterCelsiusButtonPassive][!HideMeter MeterCelsiusButtonActive][!Refresh *]
MouseLeaveAction=!Execute [!ShowMeter MeterCelsiusButtonPassive][!HideMeter MeterCelsiusButtonActive][!Update]

[MeterFahrenheitButtonPassive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontColor=#FontColor#
X=60
Y=50r
Text=Fahrenheit (F°)
SolidColor=0,0,0,1
AntiAlias=1
MouseOverAction=!Execute [!ShowMeter MeterFahrenheitButtonActive][!HideMeter MeterFahrenheitButtonPassive][!Update]

[MeterFahrenheitButtonActive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontWeight=800
FontColor=255,255,255
X=r
Y=r
Text=> Fahrenheit (F°)
SolidColor=0,0,0,1
AntiAlias=1
Hidden=1
InlineSetting=Shadow | 0 | 0 | 4.5 | 254,255,214
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Unit "f" "#@#Variables.inc"][!ShowMeter MeterFahrenheitButtonPassive][!HideMeter MeterFahrenheitButtonActive][!Refresh *]
MouseLeaveAction=!Execute [!ShowMeter MeterFahrenheitButtonPassive][!HideMeter MeterFahrenheitButtonActive][!Update]

[MeterCloseButtonPassive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontColor=#FontColor#
X=60
Y=50r
Text=Close Settings
SolidColor=0,0,0,1
AntiAlias=1
MouseOverAction=!Execute [!ShowMeter MeterCloseButtonActive][!HideMeter MeterCloseButtonPassive][!Update]

[MeterCloseButtonActive]
Meter=String
StringAlign=Left
FontFace=#FontFace#
FontSize=15
FontWeight=800
FontColor=255,255,255
X=r
Y=r
Text=> Close Settings
SolidColor=0,0,0,1
AntiAlias=1
Hidden=1
InlineSetting=Shadow | 0 | 0 | 4.5 | 254,255,214
LeftMouseUpAction=!DeactivateConfig "Simple Clean\Settings" "Settings.ini"[!ShowMeter MeterCloseButtonPassive][!HideMeter MeterCloseButtonActive][!Update]
MouseLeaveAction=!Execute [!ShowMeter MeterCloseButtonPassive][!HideMeter MeterCloseButtonActive][!Update]

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

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

[MeterColor2]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "0,0,0" "#@#Variables.inc"][!Refresh *]
ImageTint=0,0,0
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,204,0" "#@#Variables.inc"][!Refresh *]
ImageTint=255,255,0
ToolTipText="Click here to change Skin Color"

[MeterColor4]
Meter=IMAGE
ImageName=#@#ColorBox.png
X=31r
Y=r
W=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables FontColor "255,153,0" "#@#Variables.inc"][!Refresh *]
ImageTint=255,153,0
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=430
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=430
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"
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help with my [PlaceHolder]

Post by balala »

Please pack the whole config which contains these two skins and the eventual additional resources and upload the package here.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: help with my [PlaceHolder]

Post by eclectic-tech »

Yes, the entire package would help, the setting skin will not work without it.

In the meantime you can get the color change working, without using the setting skin for now; once you see how it works you can make the changes necessary to set them from a setting skin.

Replace your [MeterClick] and [MeterClick2] sections with this modified code:

Code: Select all

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

[MeterClick]
Meter=Image
X=10
Y=46
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables FontColor "255,255,255,255"][!WriteKeyValue Variables MetersColor2 "105,155,115,55"][!SetVariable PlaceholderStroke "105,155,115"][!WriteKeyValue Variables PlaceholderStroke "105,155,115"][!WriteKeyValue Variables MetersColor "251,251,251,255"][!WriteKeyValue Variables MetersColor2 "105,155,115,55"][!WriteKeyValue StyleFullCircle LineColor "5,227,185,15"][!Refresh #CurrentConfig#]

[MeterClick2]
Meter=Image
X=10
Y=66
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables FontColor "5,227,185,255"][!SetVariable PlaceholderStroke "27,47,66"][!WriteKeyValue Variables PlaceholderStroke "27,47,66"][!WriteKeyValue Variables MetersColor "5,227,185,255"][!WriteKeyValue Variables MetersColor2 "5,227,185,55"][!Refresh #CurrentConfig#]

You can not have duplicate mouse action bangs in the same section of code. Also not sure why you use both the UP and DOWN actions; using the DOWN action prevents dragging the skin to another screen position.

So I combined all of the bangs into 1 mouse UP action and changed [!Refresh *] to [!Refresh #CurrentConfig#]; the * refreshes EVERY LOADED SKIN! Which caused my readers to lock up... :uhuh:

This will get the colors to change when you click the red squares.
To make this work with a setting skin will require other changes.
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

Here they are
You do not have the required permissions to view the files attached to this post.
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

eclectic-tech wrote: November 15th, 2021, 8:55 pm Yes, the entire package would help, the setting skin will not work without it.

In the meantime you can get the color change working, without using the setting skin for now; once you see how it works you can make the changes necessary to set them from a setting skin.

Replace your [MeterClick] and [MeterClick2] sections with this modified code:

Code: Select all

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

[MeterClick]
Meter=Image
X=10
Y=46
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables PlaceHolderFill "41,53,53,200"][!WriteKeyValue Variables FontColor "255,255,255,255"][!WriteKeyValue Variables MetersColor2 "105,155,115,55"][!SetVariable PlaceholderStroke "105,155,115"][!WriteKeyValue Variables PlaceholderStroke "105,155,115"][!WriteKeyValue Variables MetersColor "251,251,251,255"][!WriteKeyValue Variables MetersColor2 "105,155,115,55"][!WriteKeyValue StyleFullCircle LineColor "5,227,185,15"][!Refresh #CurrentConfig#]

[MeterClick2]
Meter=Image
X=10
Y=66
W=10
H=10
SolidColor=200,45,20,255
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables PlaceHolderFill "36,57,74,200"][!WriteKeyValue Variables FontColor "5,227,185,255"][!SetVariable PlaceholderStroke "27,47,66"][!WriteKeyValue Variables PlaceholderStroke "27,47,66"][!WriteKeyValue Variables MetersColor "5,227,185,255"][!WriteKeyValue Variables MetersColor2 "5,227,185,55"][!Refresh #CurrentConfig#]

You can not have duplicate mouse action bangs in the same section of code. Also not sure why you use both the UP and DOWN actions; using the DOWN action prevents dragging the skin to another screen position.

So I combined all of the bangs into 1 mouse UP action and changed [!Refresh *] to [!Refresh #CurrentConfig#]; the * refreshes EVERY LOADED SKIN! Which caused my readers to lock up... :uhuh:

This will get the colors to change when you click the red squares.
To make this work with a setting skin will require other changes.
Oh yes, thanks so much for the help. :D
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: help with my [PlaceHolder]

Post by Rafamear »

I'm still looking for a way to change colors for another skin, but no success so far
;===========================================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: help with my [PlaceHolder]

Post by David8192 »

Rafamear wrote: November 15th, 2021, 9:39 pm I'm still looking for a way to change colors for another skin, but no success so far
Here is an offering from me to you.
https://forum.rainmeter.net/viewtopic.php?t=38518#p198198

I made the skin, so you can strip it bare till it's all skeleton. There is a color picker which you can edit slightly - or completely - to suit your skin values. Once it is up and running, you can drag it to your color of choice and, with one click, paint the entire siute the way you like it. If you need help, let me know.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
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 »

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#]
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================