Hello everyone and sorry for my English.
I'm looking to change the color of text based on the last modification date of a file.
For this I use Jeffrey Morley's module, LuaTextFile2.0
The module simply reads the contents of a TXT file.
I would like to change the text color based on the last modification date of a specific file.
I try to adapt the module but it doesn't work, maybe the problem is Meter Display
Thank you all for your help.
Sincerely,
I'm looking to change the color of text based on the last modification date of a file.
For this I use Jeffrey Morley's module, LuaTextFile2.0
The module simply reads the contents of a TXT file.
I would like to change the text color based on the last modification date of a specific file.
I try to adapt the module but it doesn't work, maybe the problem is Meter Display
Thank you all for your help.
Sincerely,
Code:
[Rainmeter]Author=Jeffrey MorleyUpdate=1000DynamicWindowSize=1[MeasureFile]Measure=PluginPlugin=FileViewPath=C:\test.txtType=DateModifiedFormat="%Y-%m-%d"[MeasureTime]Measure=TimeFormat=%Y-%m-%d[MeasureLuaScript]Measure=ScriptScriptFile="#CURRENTPATH#LuaTextFile.lua"FileToRead=C:\Journal.txt[MeterDisplay]Meter=StringMeasureName=MeasureLuaScriptW=300H=500FontFace=Segoe UIFontSize=11FontColor=255,255,255,255SolidColor=0,0,0,1AntiAlias=1ClipString=1Text=[&MeasureLuaScript]; Condition pour changer la couleur du texte si la date de modification est inférieure à la date d'aujourd'huiDynamicVariables=1IfCondition=(MeasureFile < MeasureTime)IfTrueAction=[!SetOption MeterDisplay FontColor "255,0,0,255"]
Statistics: Posted by SeubZero — Yesterday, 10:51 pm — Replies 3 — Views 49