如何在Rainmeter中重新开始倒计时?

时间:2015-10-26 23:54:07

标签: rainmeter

我正在尝试构建一个非常简单的倒计时,一旦达到0就会重新启动。为什么第15行(IfBelowAction)上的代码不起作用?什么是另一种方法来实现这一目标?

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Metadata]
Name=Test
Author=jjnnugent
Information=Test skin.
Version=1.0.0

[MeasureMeter]
Measure=Calc
Formula=10
IfBelowValue = 0
IfBelowAction=[!SetOption MeasureMeter Formula "10"]
OnUpdateAction=[!SetOption MeasureMeter Formula "MeasureMeter - 1"]

[MeasureString]
Meter=String
MeasureName=MeasureMeter
FontSize=18
FontColor=255,255,255
SolidColor=50,50,50,175
StringStyle=Bold
AntiAlias=1
Text=Seconds left %1

1 个答案:

答案 0 :(得分:0)

[MeasureMeter]
Measure=Calc
Formula=(MeasureMeter-1+(10+1))%(10+1)

奖励课程下的文档中找到了答案: https://docs.rainmeter.net/tips/counters-guide/