Code: Select all
[Measure_Level]
Measure=Calc
Formula=#Level#
DynamicVariables=1
Code: Select all
LeftMouseDownAction=[!SetVariable Level "(#Level#-1)"]
Code: Select all
[Measure_Level]
Measure=Calc
Formula=#Level#
DynamicVariables=1
Code: Select all
LeftMouseDownAction=[!SetVariable Level "(#Level#-1)"]
Not sure I follow. This works fine for me:dimentio64 wrote:I am Having issues getting this to properly work. The following is my code:
and the activatorCode: Select all
[Measure_Level] Measure=Calc Formula=#Level# DynamicVariables=1
This results in Level being the string "(#Level#-1)", unsurprising in my mind, but I'm following the syntax I saw indicated. I have tried several combinations of adding and removing " and # to the variable and definition. I also tried a static variable at the top instead and that had other weird issues involved... I'm assuming my syntax is just wrong here?Code: Select all
LeftMouseDownAction=[!SetVariable Level "(#Level#-1)"]
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
Level=5
[Measure_Level]
Measure=Calc
Formula=#Level#
DynamicVariables=1
[MeterOne]
Meter=String
MeasureName=Measure_Level
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
LeftMouseDownAction=[!SetVariable Level "(#Level#-1)"]
Code: Select all
LeftMouseUpAction=[!SetVariable Level "(#Level#-1)"]
Code: Select all
[draw_Ball0]
X=150
Y=150
W=40
H=40
Meter=roundline
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineLength=20
LineColor=146,222,148,255
Solid=1
AntiAlias=1
MeasureName=Measure_Level
LeftMouseDownAction=[!SetVariable Level "(#Level#-1)"]
Try thisdimentio64 wrote:Ok, so that makes sense, I forgot the MeasureName=Measure_Level part... Problem is that I'm using a 'button' (roundline) and apparently adding the measurename dissolves the 'button'
edit: and by dissolves I mean it's not there anymore and can't be clicked
Code: Select all
[draw_Ball0]
X=150
Y=150
W=40
H=40
Meter=roundline
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineLength=20
LineColor=146,222,148,255
Solid=1
AntiAlias=1
DynamicVariables=1
MeasureName=Measure_Level
LeftMouseUpAction=[!SetVariable Level "(#Level#-1)"]
Code: Select all
MeasureName=Measure_Level