I've been modifying the Google/Bing InputText example and I've gotten hung up on one spot. I'm setting some variables using the !SetVariable bang and then would like to add the two together to display in the Output meter (I'm going to be using a more complex formula later, just adding the two to get it to work). I cannot seem to get the calculation to go through though.
Any help would be much appreciated. Even a work around although it doesn't seem it should be this difficult
Thank you!
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Variables]
;CurrentInput="Pitch Diameter"
[MeterHelixHeading]
Meter=String
X=52
Y=0r
W=170
H=18
FontSize=12
FontColor=255, 139, 0
SolidColor=27,27,27,255
Padding=5,6,30,4
StringStyle=Bold
AntiAlias=1
Text=Helix Angle Calculator
[MeterInputLabel]
Meter=String
X=52
Y=20r
W=170
H=18
FontSize=10
FontColor=170,170,170,255
SolidColor=27,27,27,255
Padding=5,6,30,4
StringStyle=Italic
AntiAlias=1
Text=Enter values here...
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1-4"]
[MeasureInput]
Measure=Plugin
Plugin=InputText
X=57
Y=24
W=171
H=20
FontSize=10
FontColor=255,255,255,255
SolidColor=47,47,47,255
AntiAlias=1
FocusDismiss=1
;DefaultValue=#CurrentInput#
OnDismissAction=[!SetVariable CurrentInput ""][Play "#@#Sounds\Dismiss.wav"]
Command1=[!SetVariable pitchDiameter "$UserInput$"] DefaultValue="Pitch Diameter?"
Command2=[!SetVariable threadLead "$UserInput$"] DefaultValue="Thread Lead?"
Command3=[!SetVariable helixAngle "(#pitchDiameter#+#threadLead#)"] ; line I'm having trouble with
Command4=[!SetOption MeterOutput Text "#*helixAngle*#"][!UpdateMeter *][!Redraw]
[MeterOutput]
Meter=String
X=52
Y=0R
W=170
H=18
FontSize=10
FontColor=170,170,170,255
SolidColor=27,27,27,255
Padding=5,5,30,5
StringStyle=Italic
AntiAlias=1
DynamicVariables=1