Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 482

MeasureStyle

$
0
0
Typical scenario:

Code:

[mIndex1Name]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=1Group=ChildrenDynamicVariables=1[mIndex2Name]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=2Group=ChildrenDynamicVariables=1[mIndex3Name]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=3Group=ChildrenDynamicVariables=1[mIndex4Name]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=4Group=ChildrenDynamicVariables=1[mIndex5Name]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=5Group=ChildrenDynamicVariables=1
It could simply be:

Code:

[mIndexTemplate]Path=[mPath]Type=FileNameIndex=#CurrentSection#Group=ChildrenDynamicVariables=1[1]Measure=PluginPlugin=FileViewMeasureStyle=mIndexTemplate[2]Measure=PluginPlugin=FileViewMeasureStyle=mIndexTemplate[3]Measure=PluginPlugin=FileViewMeasureStyle=mIndexTemplate[4]Measure=PluginPlugin=FileViewMeasureStyle=mIndexTemplate[5]Measure=PluginPlugin=FileViewMeasureStyle=mIndexTemplate
This example is pretty easy to copy-paste around, which could be an argument against this feature. However, other examples can include repetitive calc formulas, bangs, and regex. This makes it inconvenient to carry a long formula accross every measure, especially if you need to edit the formula. Putting the repeating stuff into variables works sometimes but you often need to do add additional asterisks around *variables* or use """magic quotes""" which adds to inconvenience.

The example from this link shows further situations when MeasureStyle would be handy:
https://forum.rainmeter.net/viewtopic.php?t=34067&start=10#p168515

Previous explanations mention that there is not enough repetitive things to group in a template (style). But there are ☹️

If we can do it with MeterStyles, I don’t see why we shouldn’t do it with MeasureStyles.

Previosly requested at least in:Could I ask you to evaluate this feature once again?

Statistics: Posted by Active Colors — Yesterday, 8:49 pm — Replies 0 — Views 76



Viewing all articles
Browse latest Browse all 482