Assuming you have an Images folder in the skin folder and a couple of images in it, as well as a Script.lua in the skin folder...
[SkinFolder]\Script.lua:[SkinFolder]\Skin.ini:If using UpdateDivider=-1 in [Script], the result will always be 0. If using UpdateDivider=5, the result will be different than 0 only after 5 updates and not right after the FileView measures do their thing.
I know I can use Disabled=1 in [Script] instead and then FinishAction=[!EnableMeasure Script]... like here, but shouldn't the above code work too? I mean, what if you want both periodic updates via UpdateDivider, but also manual ones via some LeftMouseUpAction and commanding [Folder] to "Update"?![Confused :confused:]()
[SkinFolder]\Script.lua:
Code:
function Update() local ret = SKIN:GetMeasure('FileCount'):GetValue() return retend
Code:
[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1---Measures---[Folder]Measure=PluginPlugin=FileViewPath=#CURRENTPATH#ImagesFinishAction=[!UpdateMeasure Script][!UpdateMeter *][!Redraw][FileCount]Measure=PluginPlugin=FileViewPath=[Folder]Type=FileCount[Script]Measure=ScriptScriptFile=Script.luaUpdateDivider=-1---Meters---[Result]Meter=StringSolidColor=0,0,0,255FontColor=255,255,255,255FontFace=ConsolasFontSize=16Padding=5,5,5,5AntiAlias=1MeasureName=ScriptText=Result: %1DynamicVariables=1
I know I can use Disabled=1 in [Script] instead and then FinishAction=[!EnableMeasure Script]... like here, but shouldn't the above code work too? I mean, what if you want both periodic updates via UpdateDivider, but also manual ones via some LeftMouseUpAction and commanding [Folder] to "Update"?

Statistics: Posted by Yincognito — 20 minutes ago