Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Community Tips & Tricks • Re: Handling Empty InputText

$
0
0
Hi guys!

I have a question and just what's bothering me are two things in which both of you intervene.
It's weight control. :oops:
The first is it possible to change the value of the input with a scroll?
The second is that I can't get the scale's reading to stay within the range of 45-65 and when the skin is refreshed, the reading varies towards another point, depending on which numbers, quite a bit.

Code:

[Rainmeter]Update=-1AccurateText=1MiddleMouseUpAction=!Refresh[Variables]Peso=61.5Verde=435a51Gris=808080Rojo=cb0000;----------------------------------------------------------;[STYLE];----------------------------------------------------------[TextStyle]StringAlign=CenterFontFace=GaramondFontColor=f6f6f6FontSize=10StringEffect=ShadowFontEffectColor=6a6a6aStringStyle=BoldAntiAlias=1LeftMouseUpAction=!CommandMeasure "m#CurrentSection#" "ExecuteBatch 1"DynamicVariables=1;----------------------------------------------------------;[MEDIDAS];----------------------------------------------------------[mKg]Measure=CalcFormula=#Peso#MinValue=45MaxValue=65[mNumber1]Measure=CalcFormula=33.3[mNumber2]Measure=CalcFormula=33.4[mNumber3]Measure=CalcFormula=33.3[mPercent1]Measure=CalcFormula=( mNumber1 / ( mNumber1 + mNumber2 + mNumber3 ))[mPercent2]Measure=CalcFormula=( mNumber2 / ( mNumber1 + mNumber2 + mNumber3 ))[mPercent3]Measure=CalcFormula=( mNumber3 / ( mNumber1 + mNumber2 + mNumber3 ))[mPercent1%]Measure=CalcFormula=( 100 * mPercent1 )[mPercent2%]Measure=CalcFormula=( 100 * mPercent2 )[mPercent3%]Measure=CalcFormula=( 100 * mPercent3 )[MtNumber1]Meter=RoundlineMeasureName=mPercent1W=120H=120StartAngle=0RotationAngle=6.283LineStart=108LineLength=128LineColor=#Verde#Solid=1AntiAlias=1X=100Y=100DynamicVariables=1[MtNumber2]Meter=RoundlineMeasureName=mPercent2W=120H=120StartAngle=(2*PI*[mPercent1])RotationAngle=6.283LineStart=108LineLength=128LineColor=#Gris#Solid=1AntiAlias=1X=rY=rDynamicVariables=1[MtNumber3]Meter=RoundlineMeasureName=mPercent3W=120H=120StartAngle=(2*PI*([mPercent1]+[mPercent2]))RotationAngle=6.283LineStart=108LineLength=128LineColor=#Rojo#Solid=1AntiAlias=1X=rY=rDynamicVariables=1;----------------------------------------------------------;[TOPES];----------------------------------------------------------[MtPeso]MeasureName=mKgMeter=RotatorImageName=#@#Images\kg.pngStartAngle=#Peso#RotationAngle=(-2*PI)OffsetX=160OffsetY=160W=320H=320X=1Y=1DynamicVariables=1;----------------------------------------------------------;[INPUT];----------------------------------------------------------[mPeso]Measure=PluginPlugin=InputTextStringAlign=CenterInputLimit=0InputNumber=0W=30H=16X=226Y=152Command1=[!SetVariable Peso "$UserInput$"][!WriteKeyValue Variables Peso "[#CurrentSection#]"][!Update]DefaultValue=#Peso#[Peso]Meter=StringMeterStyle=TextStyleText=#Peso#X=241Y=151
Thank you for your patience.

Statistics: Posted by CarlotaN — Today, 4:14 pm



Viewing all articles
Browse latest Browse all 1065

Trending Articles