【03-02 问题求助】请问大佬rainmeter每天显示不同内容怎么写?
rainmeter吧
全部回复
仅看楼主
level 1
hfszhx 楼主
以下现代码:
; Rainmeter插件; 显示每天不同的文本
; 基本信息[Rainmeter]; Rainmeter环境设置Author=Copilot AppVersion=1.0.0Update=1000
; 元数据 [Metadata]; 插件信息Name=MyPluginInformation=This is a plugin that shows different content every day.License=Creative Commons Attribution-NonCommercial-ShareAlike 4.0 InternationalVersion=1.0.0
; 背景[Background] ; 背景图片Meter=ImageImageName=#@#Background.pngW=960H=85SolidColor=0,0,0,150
[MeasureRandomImage1];周一Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\monday.txt"
[MeasureRandomImage2];周二Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\tuesday.txt"
[MeasureRandomImage3];周三Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\wednesday.txt"
[MeasureRandomImage4];周四Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\thursday.txt"
[MeasureRandomImage5];周五Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\friday.txt"
[MeasureRandomImage6];周六Measure=PluginPlugin=QuotePluginPathName="
#CURRENTPATH#
\try\saturday.txt"
[MeasureLocalText];这是冗余代码Measure=PluginPlugin=TextFilePath="
#CURRENTPATH#
\try\monday.txt"
[MeasureWeekday]Measure=ScriptScriptFile=
#CURRENTPATH#
GetWeekday.lua
[Content]Measure=CalcFormula=[MeasureWeekday]
IfMatch=1IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage114]
IfMatch=2IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage1]
IfMatch=3IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage2]
IfMatch=4 IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage3]
IfMatch=5IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage4]
IfMatch=6IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage5]
IfMatch=7IfMatchAction=[!SetOption MeterText MeasureName MeasureRandomImage6]
[MeterText]MeasureName=%1Meter=STRINGX=Y=5H=330W=280FontColor=255,255,255FontSize=12FontFace=RobotoTextStyle=BoldStringAlign=LeftAntiAlias=1Clipstring=1DynamicVariables=1
现在问题:无法显示任何内容,现在没有头绪,望大佬指教
2024年03月01日 19点03分 1
level 1
hfszhx 楼主
function Initialize() local weekdays = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} local currentDay = tonumber(os.date("%w")) -- 获取当前星期几的数字(0-6) SKIN:Bang("!SetOption", "MeterText", "Text", weekdays[currentDay + 1]) -- 设置 MeterText 的值end
以上lua脚本内容
2024年03月02日 14点03分 2
level 9
你的代码怎没换行的,在你那看到的也是上面那个样子的吗
2024年03月03日 12点03分 3
嗯?怎么没有换行?我来重发一遍试试
2024年03月03日 15点03分
1