Always glad to help.Thank you balala - I was suspecting it's a small mistake that comes from just too little knowledge of the rainmeter. That small change did the job, now it is running as intended, thank you so much.
It seems Yincognito had already offered you a solution, so I come with another. Even if in meantime you've implemented his solution.I'm looking forward to help with the 2nd questions, even some general guidance regarding which elements from documentation to look into and the basic idea behind implementing such solution would be of big help!
So let's say [MeasureRandom2] is a second Calc measure returning the second random number. This measure has the exact same code as [MeasureRandom], so I'm not posting it (hope this is done, you have the measure). To make sure the value of this measure is never coinciding with the value of [MeasureRandom] measure, add the following options to the [MeasureRandom2] measure (keep the existing options, just add these ones). I post belloow the whole code of the measure, not just the newlly added options. These new options are the ones related to the IfCondition option:
Code:
[MeasureRandom2]Measure=CalcFormula=RandomUpdateDivider=-1UpdateRandom=1LowBound=0HighBound=3IfCondition=(#CURRENTSECTION#=MeasureRandom)IfTrueAction=[!UpdateMeasure "MeasureRandom2"][!UpdateMeter "RedFrame1"][!Redraw]IfConditionMode=1
When the value of [MeasureRandom] and [MeasureRandom2] are the same, IfCondition becomes true, leading to execution of IfTrueAction. By this [MeasureRandom2] gets updated, getting a new value, other than the one returned by [MeasureRandom].
Additional tip: In Rainmeter, unlike in a programming language, comments always have to be added to new line. You can't add these comments to the end of an existing option, this leading to an error message in the log, related to the option followed by the comment. You've added such a comment for instance to the end of the X option of the [RedFrame1] meter. Note that there are some options which are using semicolon (TransformationMatrix) and as such, Rainmeter can't decide when a semicolon is used to start a comment or when is it belonging to the option. Some details here.
Statistics: Posted by balala — Yesterday, 7:19 pm