I would like to clarify a question about IfCondition's update effect.
I try to fix my EasyRGBpick skin, where i simply want to measure and set variables at every mouse click.
Here is the main code:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
[Variables]
fx=0
fTy=0
fy=0
mzpozX=#mzpozTx#
mzpozY=#mzpozTy#
U=[!UpdateMeasureGroup "cls"][!UpdateMeterGroup "ims"][!Redraw]
[detectingArea]
Meter=Image
SolidColor=0,0,0,1
X=0
Y=0
W=#alx#
H=#aly#
LeftMouseDownAction=[!SetVariable mzpozX $MouseX$][!SetVariable mzpozY $MouseY$][!SetVariable fx $MouseX:%$][!SetVariable fTy $MouseY:%$]#U#
DynamicVariables=1
[--------------------- Calculations 1 -----------------------------]
[BaseRed]
Measure=Calc
Group=cls
Formula=#fx#
IfCondition=#fx# < 16
IfTrueAction=[!SetVariable rtx 255]
IfCondition2=(#fx# > 15) && (#fx# < 33)
IfTrueAction2=[!SetVariable rtx (16-(#fx#-16))]
DynamicVariables=1
UpdateDivider=-1
I don't know if i write it clearly, it's strange. I just want to know that if the Measure updates, the IfCondition2 is running only once, if it's True, or every time when it's True?