Re: How to make color transfusion
Posted: June 10th, 2022, 5:20 pm
Just an advice for the future - most of the things related to syntax, like time formatting and others, are found in the manual as well. The idea is that for such things, the user can easily search for the desired setting, especially since the manual explains stuff much better than a targeted answer could. Obviously, only looking in the manual won't be enough for more complex tasks, but it's a great starting point, all that's needed is reasonable navigation skills.
Sure you can, take a look here. The simplest form of it is basically just:
Code: Select all
[SomeImage]
Meter=Image
ImageName=PathToTheImage
Code: Select all
[SomeImage]
X=probably 0 if you want it at the left
...
[YourText]
X=0R
...
Code: Select all
[MeterImage]
Meter=Image
ImageName=#@#a.png
[MeterClock]
Meter = STRING
MeasureName = MeasureClock
MeterStyle = FontStyle
FontColor = [Transition]
X = ([MeterImage:W]+#w#/2)
Y = 6
; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw]
; MiddleMouseUpAction=[!TogglePauseMeasure Transition]
UpdateDivider=1
DynamicVariables=1
Code: Select all
[Rainmeter]
Name = Windows Taskbar Clock
Author = lynxNZL
OnRefreshAction=[!ZPos "2"]
Update=#FastUpdate#
DefaultUpdateDivider=#UpdateDivider#
[Variables]
text_color = 0,255,0,255
bg_color = 0,0,0,1
font = Segoe UI SemiLight
fontsize = 9
w = 320
h = 30
FastUpdate=1
SlowUpdate=10
UpdateDivider=(#SlowUpdate#/#FastUpdate#)
Increment=3
Direction=1
StartColor=0
Quantifier=#StartColor#
Alternator=0
[Transition]
; Disabled=1
Measure=Calc
Formula=((#CURRENTSECTION#+#Increment#)%256)
RegExpSubstitute=1
Substitute="^(.*)$":"(255*(1*(1+(#Direction#))/2+#Alternator#*(1-(#Direction#))/2)-((#Direction#)*(\1)*((1-(#Direction#))/2+(#Direction#)*#Alternator#))),0,(255*(1*(1-(#Direction#))/2+#Alternator#*(1+(#Direction#))/2)+((#Direction#)*(\1)*((1+(#Direction#))/2-(#Direction#)*#Alternator#))),255","^((?:[^,]*,){#Quantifier#})((?:[^,]*,)*)(.*)$":"\2\1\3","\\\d":""
IfCondition=((#CURRENTSECTION#+#Increment#)>=256)
IfTrueAction=[!SetVariable Alternator (1-#Alternator#)][!SetVariable Quantifier ((3+#Quantifier#+#Direction#*#Alternator#*1)%3)]
IfConditionMode=1
UpdateDivider=1
DynamicVariables=1
[MeasureClock]
Timezone = +2
Measure = Time
Format =Gal Ferencz time:[%H:%M] date:[%#m/%d]
[FontStyle]
FontFace = #font#
FontSize = #fontsize#
FontColor = #text_color#
StringAlign = center
AntiAlias = 1
[Size]
Meter = Image
SolidColor = #bg_color#
w = #w#
h = #h#
[MeterClock]
Meter = STRING
MeasureName = MeasureClock
MeterStyle = FontStyle
FontColor = [Transition]
X = (#w#/2)
Y = 6
; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw]
; MiddleMouseUpAction=[!TogglePauseMeasure Transition]
UpdateDivider=1
DynamicVariables=1
[SomeImage]
X=0
Meter=Image
ImageName=C:\Users......
Check my edit above and just replace the path in the ImageName option with your own. In the code you posted now, you don't even have a valid path to an image, and your image meter is AFTER the text meter. The image meter should be be BEFORE the text meter if you want to easily position the text AFTER the image.GFTs wrote: ↑June 10th, 2022, 6:29 pmdon't know what i did wrong.Code: Select all
[Rainmeter] Name = Windows Taskbar Clock Author = lynxNZL OnRefreshAction=[!ZPos "2"] Update=#FastUpdate# DefaultUpdateDivider=#UpdateDivider# [Variables] text_color = 0,255,0,255 bg_color = 0,0,0,1 font = Segoe UI SemiLight fontsize = 9 w = 320 h = 30 FastUpdate=1 SlowUpdate=10 UpdateDivider=(#SlowUpdate#/#FastUpdate#) Increment=3 Direction=1 StartColor=0 Quantifier=#StartColor# Alternator=0 [Transition] ; Disabled=1 Measure=Calc Formula=((#CURRENTSECTION#+#Increment#)%256) RegExpSubstitute=1 Substitute="^(.*)$":"(255*(1*(1+(#Direction#))/2+#Alternator#*(1-(#Direction#))/2)-((#Direction#)*(\1)*((1-(#Direction#))/2+(#Direction#)*#Alternator#))),0,(255*(1*(1-(#Direction#))/2+#Alternator#*(1+(#Direction#))/2)+((#Direction#)*(\1)*((1+(#Direction#))/2-(#Direction#)*#Alternator#))),255","^((?:[^,]*,){#Quantifier#})((?:[^,]*,)*)(.*)$":"\2\1\3","\\\d":"" IfCondition=((#CURRENTSECTION#+#Increment#)>=256) IfTrueAction=[!SetVariable Alternator (1-#Alternator#)][!SetVariable Quantifier ((3+#Quantifier#+#Direction#*#Alternator#*1)%3)] IfConditionMode=1 UpdateDivider=1 DynamicVariables=1 [MeasureClock] Timezone = +2 Measure = Time Format =Gal Ferencz time:[%H:%M] date:[%#m/%d] [FontStyle] FontFace = #font# FontSize = #fontsize# FontColor = #text_color# StringAlign = center AntiAlias = 1 [Size] Meter = Image SolidColor = #bg_color# w = #w# h = #h# [MeterClock] Meter = STRING MeasureName = MeasureClock MeterStyle = FontStyle FontColor = [Transition] X = (#w#/2) Y = 6 ; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw] ; MiddleMouseUpAction=[!TogglePauseMeasure Transition] UpdateDivider=1 DynamicVariables=1 [SomeImage] X=0 Meter=Image ImageName=C:\Users......
You resize it by changing the W or H or both. You move it by changing the X or Y or both.
Yes, you should do something like this:
Code: Select all
H=[MeterClock:H]
PreserveAspectRatio=1
DynamicVariables=1