【03-07 问题求助】求一个闹钟插件,只要闹钟,不用要时间的
rainmeter吧
全部回复
仅看楼主
level 8
00abc101 楼主
【03-07 问题求助】求一个闹钟插件,只要闹钟,不用要时间的简洁一点
2021年03月07日 02点03分 1
level 9
[Rainmeter]
Update=1000
AccurateText=1
[Metadata]
Name=JiShiLeiRi
Author=SOMI
[email protected]
Version=1.0.2103
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
[BG]
Meter=String
X=0
Y=0
W=30
H=30
SolidColor=0,0,0,1
UpdateDivider=-1
[MSTime]
Measure=Time
Format=%H.%M%S
IfCondition=
#Currentsection#
= 12.3
IfTrueAction=[play "
#ringtone1#
"]
IfCondition2=
#Currentsection#
= 15.2101
IfTrueAction2=[play "
#ringtone2#
"]
下载两个闹钟铃声,格式wav,命名为ringtone1、ringtone2,放到皮肤目录下面
上面的IfCondition*、IfTrueAction*为一对,
如果只需一个闹钟,可以删除IfCondition2、IfTrueAction2
同理,如果想增加闹钟,可以多IfCondition3、IfTrueAction3。。。。
12.3、15.2101是指12点半和15点21分01秒
2021年03月07日 09点03分 2
上面有些行多了些空行,复制过去后手动删除吧
2021年03月07日 09点03分
@somi 大佬,哪些是多的空行
2021年03月07日 09点03分
level 9
如果上面的不行,那就将[MSTime]那一段替换成以下:
[MSTime]
Measure=Time
Format=%H.%M%S
[CalcTime]
Measure=Calc
Formula=MSTime
IfCondition=
#Currentsection#
= 12.3
IfTrueAction=[play "
#ringtone1#
"]
IfCondition2=
#Currentsection#
= 15.2101
IfTrueAction2=[play "
#ringtone2#
"]
2021年03月07日 09点03分 3
level 8
00abc101 楼主
非常感谢大佬
2021年03月07日 09点03分 4
level 8
00abc101 楼主
大佬,再问个问题,能不能再做个可视化设置添加闹钟界面
2021年03月07日 09点03分 5
添加闹钟需要直接修改皮肤添加条件,可视化添加可能比较难实现,做个修改闹钟时间的设置面板倒是可以的,只是这个闹钟皮肤无须做得太复杂,简单就行,看楼下
2021年03月07日 13点03分
level 9
首先,你在你的闹钟皮肤目录下面新建 Setting.inc 文件,建好后关联上记事本
然后在Setting.inc文件里加上以下三行:
[Variables]
AC1=12.3
AC2=15.2101
最后皮肤改成以下:
[Rainmeter]
Update=1000
AccurateText=1
[Metadata]
Name=JiShiLeiRi
Author=SOMI
[email protected]
Version=1.0.2103
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
@include=Setting.inc
[BG]
Meter=String
X=0
Y=0
W=30
H=30
SolidColor=0,0,0,1
UpdateDivider=-1
LeftMouseUpAction=
#CurrentPath#
\Setting.inc
[MSTime]
Measure=Time
Format=%H.%M%S
IfCondition=
#Currentsection#
=
#AC1#

IfTrueAction=[play "
#ringtone1#
"]
IfCondition2=
#Currentsection#
=
#AC2#

IfTrueAction2=[play "
#ringtone2#
"]
这样你点击皮肤时(一个透明的方块),就可以用记事本打开Setting.inc来修改闹钟时间了
添加闹钟的话只能修改皮肤增加IfCondition条件了
2021年03月07日 13点03分 6
大佬,没反应咋办
2021年03月08日 05点03分
就是到时间后不会像那个铃声,而是响起系统提示音
2021年03月08日 05点03分
辛苦大佬了
2021年03月08日 05点03分
@00abc101 就是叮的一声
2021年03月08日 05点03分
level 8
00abc101 楼主
好的,谢谢大佬
2021年03月08日 04点03分 7
level 9
[MSTime]
Measure=Time
Format=%H.%M%S
IfCondition=
#Currentsection#
=
#AC1#

IfTrueAction=[play "ringtone1.wav"]
IfCondition2=
#Currentsection#
=
#AC2#

IfTrueAction2=[play "ringtone2.wav"]
IfCondition3=
#Currentsection#
= (
#AC2#
+0.01)
IfTrueAction3=[play "ringtone2.wav"]
IfCondition4=
#Currentsection#
= (
#AC2#
+0.02)
IfTrueAction4=[play "ringtone2.wav"]
IfCondition5=
#Currentsection#
= (
#AC2#
+0.03)
IfTrueAction5=[play "ringtone2.wav"]
比如门闹铃AC2,当时间到了
#AC2#
这个时间后,会响一次铃,然后接下来三分钟里,每隔一分钟就会响一次
2021年03月08日 08点03分 8
level 9
Setting.inc 文件:
[Variables]
AC1=12.3
AC2=15.2101
ringtone1=ringtone1.wav
ringtone2=ringtone2.wav
闹钟皮肤:
[Rainmeter]
Update=1000
AccurateText=1
[Metadata]
Name=JiShiLeiRi
Author=SOMI
[email protected]
Version=1.0.2103
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
@include=Setting.inc
[BG]
Meter=String
X=0
Y=0
W=30
H=30
SolidColor=0,0,0,1
UpdateDivider=-1
LeftMouseUpAction=
#CurrentPath#
\Setting.inc
RightMouseUpAction=[!Refresh]
[MSTime]
Measure=Time
Format=%H.%M%S
IfCondition=
#Currentsection#
=
#AC1#

IfTrueAction=[play "
#ringtone1#
"]
IfCondition2=
#Currentsection#
=
#AC2#

IfTrueAction2=[play "
#ringtone2#
"]
2021年03月08日 09点03分 9
level 8
00abc101 楼主
2021年03月08日 14点03分 10
大佬,如图,我在原来的基础上稍加改动,但是现在不会响,连叮的一声也没有,怎么回事
2021年03月08日 14点03分
@00abc101 第一个闹钟应该是没问题的,第一个以后的那几个闹钟铁定100%不会响,因为你没定义AC2或是你想将AC2改成AC2但忘了
2021年03月08日 16点03分
我测试过的,都能响,你下载后将时间改成自己的或自己扩展一下:ws28[吐舌].[吐舌]cn/[吐舌]f/[吐舌]4w177ufpjfs
2021年03月08日 16点03分
没问题了,谢谢大佬
2021年03月09日 04点03分
level 9
播放声音的几个命令:
Play 播放指定的音频文件一次。 (音频文件:被播放的文件的地址。必须为 wav 文件)
示例:Play "SomeFile.wav"
PlayLoop 循环播放指定的音频文件。(音频文件:被播放的文件的地址。必须为 wav 文件)
示例:PlayLoop "SomeFile.wav"
PlayStop 停止当前播放的声音。
2021年03月14日 09点03分 11
非常感谢[哈哈]
2021年03月14日 14点03分
大佬,大佬,再问个问题
2021年04月17日 04点04分
如下图
2021年04月17日 04点04分
level 8
00abc101 楼主
[MSTime2]
Measure=Time
Format=%m.%d.%H.%M%S
IfCondition3=
#Currentsection#
=
#定日1#

IfTrueAction3=[play "
#1#
"]
2021年04月17日 04点04分 12
[Variables] 单日1=12.5830 单日2=100.00 定日1=4.17.12.59 1=ringtone1.wav 2= 定日1=4.17.12.53
2021年04月17日 04点04分
@00abc101 看楼下
2021年04月17日 04点04分
level 8
00abc101 楼主
我在后面又加了一段,想要加上日期,但是不知道为啥不会响,能指教一下吗
2021年04月17日 04点04分 13
level 8
00abc101 楼主
[Variables]
单日1=12.5830
单日2=100.00
定日1=4.17.12.59
1=ringtone1.wav
2=
定日1=4.17.12.53
2021年04月17日 04点04分 14
这个是inc里面的,第一个,第二个会响,第三个不会,怎么回事呢
2021年04月17日 05点04分
把最下面的一行删了也不行
2021年04月17日 05点04分
是哪里出错了呢
2021年04月17日 05点04分
@00abc101 拿你所列的其中一个时间来说说我对时间参数的定义方法,如12.5830,这个是指12点58分30秒,所以你后面列的单日2=100.00、定日1、定日2都是不正确的
2021年04月17日 14点04分
level 9
关于IfCondition、IfMatch和公式等方面的内容,你可以上百度搜 “ RM中文手册第四版+(2014-9-18).pdf ”来了解一下
2021年04月17日 14点04分 16
1 2 尾页