level 2
想要在鼠标滑过带有快捷方式的文字上是,文字加粗,鼠标划走时恢复。。。代码在二楼
2021年10月21日 04点10分
1
level 2
#这是一个时间和快捷方式的练习,主要是通过rm显示时间,年月日时分秒,可以变化他们的字体之类的。。。#
[Rainmeter]
Updating=10
#tmd字体选一个夸张一点的,要不然还发现不了字体到底变没变#
[TextStyle]
FontFace='Endpoints'
FontColor=255,245,207,255
SolidColor=0,0,0,1
StringStyle=Bold
StringAlign=Right
AntiAlias=1
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDay]
Measure=Time
Format=%
#B,%#
d
[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=290
Y=30R
FontSize=60
[MeterDay]
Meter=String
MeterStyle=TextStyle
StringStyle=Bold
MeasureName=MeasureDay
X=250
Y=1R
FontSize=25
[MeterMD]
Meter=String
X=190
Y=150
FontSize=30
SolidColor=0,0,0,1
MeterStyle=TextStyle
Text=Typora
MouseLeaveAction=!Hidemeter MeterMD2
MouseOverAction=!Showmeter MeterMD2
[MeterMD2]
Meter=String
X=190
Y=150
FontSize=31
SolidColor=0,0,0,1
MeterStyle=TextStyle
Text=Typora
LeftMouseUpAction=["D:\Typora\Typora.exe"]
MouseOverAction=MeterMD2
2021年10月21日 04点10分
3
还有一个问题就是每次刷新之后,它会变成加粗之后的样子,想要他原来就是没有效果的状态。。。。要怎么做呢,,,求助大佬\("▔□▔)/!
2021年10月21日 04点10分
level 9
[MeterMD]
Meter=String
X=190
Y=150
FontSize=30
SolidColor=0,0,0,1
MeterStyle=TextStyle
StringStyle=Normal
Text=Typora
MouseOverAction=[!SetOption MeterMD StringStyle Bold][!Update]
MouseLeaveAction=[!SetOption MeterMD StringStyle Normal][!Update]
LeftMouseUpAction=["D:\Typora\Typora.exe"]
[MeterMD2]删掉不要
2021年10月21日 05点10分
5
@泽洛洛😾 [!Update]那里没有特殊的情况可以写成那样,但用[!UpdateMeter MeterMD ][!Redraw]会更保险一点
2021年10月30日 04点10分
level 9
Updating=10设得太小了吧,0.01秒就刷新一次。
看你的皮肤没这个必要,改成Updating=1000更科学
2021年10月21日 05点10分
6
啊啊啊啊谢谢大佬!!!
2021年10月30日 01点10分
level 7
[Variables]节点下添加W=400
[MeterMD]节点下添加:
InlineSetting=Weight |
#W#
MouseOverAction=[!CommandMeasure RegularToBold "Execute 1"][!CommandMeasure BoldToRegular "Stop 1"]
MouseLeaveAction=[!CommandMeasure RegularToBold "Stop 1"][!CommandMeasure BoldToRegular "Execute 1"]
DynamicVariables=1
新建两个节点:
[RegularToBold]
Measure=Plugin
Plugin=ActionTimer
Group=Bold
ActionList1=ChangeWStart | Wait 10 | Repeat ChangeWCalc,10,30
ChangeWStart=[!SetVariable W "
#W#
"][!UpdateMeasureGroup Bold][!UpdateMeter MeterMd][!Redraw]
ChangeWCalc=[!SetVariable W "(Clamp(
#W#
+10,400,700))"][!UpdateMeasureGroup Bold][!UpdateMeter MeterMd][!Redraw]
DynamicVariables=1
[BoldToRegular]
Measure=Plugin
Plugin=ActionTimer
Group=Bold
ActionList1=ChangeWStart | Wait 10 | Repeat ChangeWCalc,10,30
ChangeWStart=[!SetVariable W "
#W#
"][!UpdateMeasureGroup Bold][!UpdateMeter MeterMd][!Redraw]
ChangeWCalc=[!SetVariable W "(Clamp(
#W#
-10,400,700))"][!UpdateMeasureGroup Bold][!UpdateMeter MeterMd][!Redraw]
DynamicVariables=1
要实现字体变化,首先要确保你设置的字体家族有不同的字体形态,否则无法看到变化。
2021年10月21日 08点10分
8