I do have an issue with !SetOption, and after searching, this is the thread i found mostly related to my issue.
I have a code (it is mostly from Activedock by jsmorley)
Code: Select all
[Rainmeter]
Update=200
[MeterApp11]
Meter=Image
X=4r
Y=4r
W=32
H=32
ImageName=Icons\#Img11#
ImageAlpha=210
ImageTint=255,255,255,190
GreyScale=1
MouseOverAction=!SetOption #CURRENTSECTION# ImageAlpha 255
MouseLeaveAction=!SetOption #CURRENTSECTION# ImageAlpha 210
LeftMouseUpAction=!Execute ["#App11#"]
;DynamicVariables=1
[MeterGlow11]
Meter=Image
X=-4r
Y=32r
W=40
H=4
SolidColor=0,255,0,160
UpdateDivider=86400
Hidden=1
So far so good. Now i have two versions that modify the look of MeterApp11, depending on whether the program is running or not.
BOTH versions work as intended (despite having read that SetOption can't change X Y values), but the !SetOption parts work for
one update cycle only.
Code: Select all
[MeasurePID11]
Measure=Plugin
Plugin=Process.dll
ProcessName=#Proc11#
UpdateDivider=2
IfBelowValue=1
IfBelowAction=[!HideMeter MeterGlow11][!SetOption MeterApp11 Y r]
IfAboveValue=0
IfAboveAction=[!ShowMeter MeterGlow11][!SetOption MeterApp11 Y 4r]
[MeasurePID11]
Measure=Plugin
Plugin=Process.dll
ProcessName=#Proc1#
IfBelowValue=1
IfBelowAction=[!SetOption MeterApp1 GreyScale 1]
IfAboveValue=0
IfAboveAction=[!SetOption MeterApp1 GreyScale ""]
I have tried a dozen small modifications, the issue seems to be with SetOption itself. DynamicVariables has no effect whatsoever. What might be the problem? (I am using the 2.5.0 beta r1819 64-bit version of Rainmeter.)
Thanks!
EDIT: Wrong paste, sorry! It's now SetOption, and the actual code i have the problem with.