如何在 .ini 文件 Windows 10 / Rainmeter 中的播放和暂停按钮之间切换?

问题描述

enter image description here

我已经尝试为 Play.png 和 Pause.png 中的每一个更改“替换”值,但无论我使用哪种组合,单击它们中的一个都会消失,或者它们都消失。

以下是管理该小部件播放和暂停图像以显示代码片段:

[MeasureStateButton]
测量=插件
插件=NowPlaying.dll
玩家名称=#玩家#
玩家类型=状态
Substitute="0":"#@#Play.png","1":"#@#Pause.png","0":"#@#Pause.png","1":"#@#Play .png"

这里是完整的 .ini 文件

[雨量计]
更新=250
背景模式=2
纯色=0,1
动态窗口大小=1
准确文本=1
MouseScrollUpAction=[!Setvariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!Writekeyvalue 变量比例 "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] MouseScrollDownAction=[!Setvariable Scale "(#Scale#-#ScrollMouseIncrement#

[变量]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
比例=0.4

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

[测量艺术家]
测量=插件
插件=NowPlaying.dll
玩家名称=#玩家#
PlayerType=ARTIST

[测量标题]
测量=插件
插件=NowPlaying.dll
玩家名称=#玩家#
PlayerType=TITLE

[MeasureStateButton]
测量=插件
插件=NowPlaying.dll
玩家名称=#玩家#
玩家类型=状态
Substitute="0":"#@#Play.png","1":"#@#Play .png"
;------------------------------------------------- ------------
;------------------------------------------------- ------------

[仪表背景]
米=形状
X=(0*#Scale#)
Y=(0*#Scale#)
形状=矩形 1,1,([MeterTitle:W]+200*#Scale#),(100*#Scale#),(50*#Scale#) |填充颜​​色 #Color3# |
描边颜色 #Color3#,0
动态变量=1

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

[Meterartist]
仪表=字符串
MeasureName=MeasureArtist
Stringalign=Left
FontFace=格鲁吉亚
StringStyle=斜体
字体颜色=#Color1#
FontSize=(30*#Scale#)
X=(250*#比例#)
Y=(150*#比例#)
文本="%1"
抗锯齿=1
内联设置=阴影 | (1*#规模#) | (1*#规模#) | (2*#规模#) | #Color3#,150

[仪表标题]
仪表=字符串
测量名称=测量标题
Stringalign=Left
FontFace=Roboto 黑色
字体颜色=#Color1#
FontSize=(30*#Scale#)
X=(100*#Scale#)
Y=(30*#Scale#)
文本="%1"
抗锯齿=1

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

[MeterPrevIoUs]
仪表=图像
图片名称=#@#PrevIoUs.png
X=(0*#Scale#)
Y=(140*#比例#)
W=(60*#Scale#)
ImageTint=#Color1#
MouSEOverAction=[!Setoption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=[!Setoption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseUpAction=[!PluginBang "MeasureStateButton PrevIoUs"]

[MeterPlayPause]
米=图像
ImageName=[MeasureStateButton]
X=(80*#Scale#)r
Y=(0*#Scale#)r
W=(60*#Scale#)
ImageTint=#Color1#
动态变量=1
MouSEOverAction=[!Setoption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=[!Setoption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]

[MeterNext]
仪表=图像
图片名称=#@#Next.png
X=(80*#Scale#)r
Y=(0*#Scale#)r
W=(60*#Scale#)
ImageTint=#Color1#
MouSEOverAction=[!Setoption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=[!Setoption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)