It is currently December 7th, 2022, 12:56 pm

Weird BEhavior - Or so it seems

Get help with creating, editing & fixing problems with skins
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4885
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weird BEhavior - Or so it seems

Post by eclectic-tech »

I made a few mods to your "converter.ini" file:

Changed labels to show conversion direction 'To Metric' or 'To Imperial' (because 'British' and 'Metric' mean the same to me) :O
Escaped the #Var# in your !SetOption bangs in [MeasureOfUnits] section (#*Var*#)
Corrected revered formulas for Fahrenheit and Celsius
Corrected multiplier for MPH to KPH (was incorrectly set to 0.914 instead of 0.62)
Added zero integer to all decimal multipliers
Modified Command1 to show the output text after user input presses 'Enter'
Added !SetOptions to mouse scroll to reset the input and output 'Text' values
Added Middlemouseupaction to refresh skin
Commented out your formula notes at th bottom

Give this a try... and see if it helps.

Converter.ini

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!Zpos 0]
AccurateText=1
MiddleMouseUpAction=[!Refresh]

[Variables]
@include=#@#_ExtendPrefs.inc
Var=0

;================================================ Styles

[TextStyle]
FontFace=#TitleFont#
FontColor=#IconTint#
FontSize=#TitleSize#
StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1

[TextShapeStyle]
Shape=Rectangle 2,2,461,35,17 | StrokeWidth 2 | Stroke Color #EdgeColor# | Fill Color #FillColorButtons#
MouseScrollUpAction=[!SetOption "MeterInPut" Text "Enter"][!SetOption "OutPutText" Text "Output"][!SetVariable UnitSystem ((#UnitSystem#+1)%7)][!WriteKeyValue Variables UnitSystem "[#UnitSystem]" "#@#_ExtendPrefs.inc"][!Update]
MouseScrollDownAction=[!SetOption "MeterInPut" Text "Enter"][!SetOption "OutPutText" Text "Output"][!SetVariable UnitSystem ((#UnitSystem#=0)?6:(#UnitSystem#-1))][!WriteKeyValue Variables UnitSystem "[#UnitSystem]" "#@#_ExtendPrefs.inc"][!Update]
LeftMouseUpAction=[!SetVariable UnitSystem "0"][!Update]
DynamicVariables=1
AntiAlias=1

[BaseShapeTitle]
Meter=Shape
Shape=Rectangle 2,43,460,45,22 | StrokeWidth 4 | Stroke Color #EdgeColor# | Fill Color #FillColorButtons#
DynamicVariables=1
AntiAlias=1

[ButtonStyleGrad]
Shape=Rectangle 0,-5,45,45,22 | StrokeWidth 0 | Fill LinearGradient MyGradient1
MyGradient1=270 | #GradTop# ; 0,0 | #GradMid# ; 0.05 | 40,40,40,255 ; 0.25 | #GradMid# ; 0.75 | 20,20,20,255 ; 0.9
DynamicVariables=1
AntiAlias=1

[ButtonStyleFill]
Shape=Rectangle 5,0,35,35,17 | Fill Color #FillColorButtons# | StrokeWidth 0
DynamicVariables=1
AntiAlias=1

[ClickButtonStyle]
X=0
Y=5
W=35
H=35
ImageTint=#IconTint#
DynamicVariables=1
AntiAlias=1

[IconStyle]
ImageName=
ImageTint=#IconTint#
X=26
Y=47
DynamicVariables=1

[HoverStyle]
Shape=Rectangle 5,0,35,35,17 | Fill Color 0,0,0,1 | StrokeWidth 1 | Stroke Color #HoverTint#
DynamicVariables=1
Antialias=1
Hidden=1

;======================== Layout ================

[MeterBaseUnits]
Meter=Shape
MeterStyle=TextShapeStyle

[BaseText]
Meter=String
SolidColor=0,0,0,1
Y=22
X=230
FontFace=#TitleFont#
FontColor=#IconTInt#
FontSize=14
StringAlign=CenterCenter
DynamicVariables=1

[BaseShape]
Meter=Shape
MeterSTyle=BaseShapeTitle
DynamicVariables=1
AntiAlias=1

;=================================== Mode ===

[SystemGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=155
Y=48

[SystemFill]
Meter=Shape
MeterStyle=ButtonStyleFill
DynamicVariables=1
X=155
Y=48

[SystemHover]
Meter=shape
MeterStyle=HoverStyle
X=155
Y=48

[StytemText]
Meter=String
MeterStyle=TextStyle
X=250
Y=65
Text=#Mode#
DynamicVariables=1

[SystemIcon]
Meter=Image
ImageTint=#IconTint#
MeterStyle=ClickButtonStyle
X=160
Y=48
ImageName=#@#Icon0.png
MouseOverAction=[!SetOption SystemHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption SystemHover Hidden "1"][!Update]
LeftMouseDownAction=[!SetOption SystemIcon ImageName "#@#Icon1.png"][!Update]
LeftMouseUpAction=[!SetOption SystemIcon ImageName "#@#Icon0.png"][!SetVariable Mode "(1-#Mode#)"][!WriteKeyValue Variables Mode "[#Mode]" "#@#_ExtendPrefs.inc"][!Update]
DynamicVariables=1

[MeterInput]
Meter=String
X=55
Y=54
W=98
H=24
FontSize=15
FontColor=#IconTint#
SolidColor=15,15,15
AntiAlias=1
FontFace=Tele-Marines
Text=Enter

[MeasureInput]
Measure=Plugin
Plugin=InputText
X=55
Y=54
W=98
H=24
FontSize=15
FontColor=#EdgeColor#
SolidColor=15,15,15
FontFace=Tele-Marines
InputNumber=1
AntiAlias=1
InputLimit=6
Command1=[!SetVariable Var "$UserInput$"][!WriteKeyValue Variables Var "[#var]" "#@#_ExtendPrefs.inc"][!SetOption "MeterInPut" Text "[#*Var*]"][!SetOption "OutPutText" Text "[*MeasureOfUnits*]"][!Update]

;======================================== Input = 

[InputGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=5
Y=48

[InputFill]
Meter=Shape
MeterStyle=ButtonStyleFill
X=5
Y=48

[InputHover]
Meter=shape
MeterStyle=HoverStyle
X=5
Y=48

[ImputIcon]
Meter=Image
ImageTint=#IconTint#
MeterStyle=ClickButtonStyle
X=10
Y=48
ImageName=#@#Arrowright0.png
LeftMouseDownAction=[!SetOption ImputIcon ImageName """#@#Arrowright1.png"""][!Update]
MouseOverAction=[!SetOption InputHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption InputHover Hidden "1"][!Update]
LeftMouseUpAction=[!SetOption ImputIcon ImageName """#@#ArrowRight0.png"""][!CommandMeasure MeasureInput "ExecuteBatch 1"][!Update]
DynamicVariables=1

;============================== OutPut Section ==

[OutputOneGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=305
Y=48

[OutputOneFill]
Meter=Shape
MeterStyle=ButtonStyleFill
X=305
Y=48

[OutputHover]
Meter=shape
MeterStyle=HoverStyle
X=305
Y=48

[OutputText]
Meter=String
MeterStyle=TextStyle
X=396
Y=66
Text=Output
LeftMouseUpAction=[!Update]
DynamicVariables=1

[OutputIcon]
Meter=Image
ImageTint=#IconTint#
X=310
Y=48
MeterStyle=ClickButtonStyle
ImageName=#@#Set0.png
MouseOverAction=[!SetOption OutputHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption OutputHover Hidden "1"][!Update]
LeftMouseDownAction=[!SetOption OutputIcon ImageName "#@#Set1.png"][!Update]
LeftMouseUpAction=[!SetOption OutputIcon ImageName "#@#Set0.png"][!Update]
DynamicVariables=1

;============================ Stats Configs =====

;================================================

[MeasureOfUnits]
Measure=Calc
Formula=0
IfCondition=(#Mode# = 1) && (#UnitSystem# = 1)
IfTrueAction=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.914"][!Update]
IfCondition2=(#Mode# = 0) && (#UnitSystem# = 1)
IfTrueAction2=[!SetOption MeasureOfUnits Formula "#*Var*# * 1.093"][!Update]
IfCondition3=(#Mode# = 1) && (#UnitSystem# = 2)
IfTrueAction3=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.45"][!Update]
IfCondition4=(#Mode# = 0) && (#UnitSystem# = 2)
IfTrueAction4=[!SetOption MeasureOfUnits Formula "#*Var*# * 2.2"][!Update]
IfCondition5=(#Mode# = 1) && (#UnitSystem# = 3)
IfTrueAction5=[!SetOption MeasureOfUnits Formula "((#*Var*# -32) * 0.5556)"][!Update]
IfCondition6=(#Mode# = 0) && (#UnitSystem# = 3)
IfTrueAction6=[!SetOption MeasureOfUnits Formula "((#*Var*# * 1.8) +32)"][!Update]
IfCondition7=(#Mode# = 1) && (#UnitSystem# = 4)
IfTrueAction7=[!SetOption MeasureOfUnits Formula "#*Var*# * 1.609"][!Update]
IfCondition8=(#Mode# = 0) && (#UnitSystem# = 4)
IfTrueAction8=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.62"][!Update]
IfCondition9=(#Mode# = 1) && (#UnitSystem# = 5)
IfTrueAction9=[!SetOption MeasureOfUnits Formula "#*Var*# * 2.54"][!Update]
IfCondition10=(#Mode# = 0) && (#UnitSystem# = 5)
IfTrueAction10=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.39"][!Update]
IfCondition11=(#Mode# = 1) && (#UnitSystem# = 6)
IfTrueAction11=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.264"][!Update]
IfCondition12=(#Mode# = 0) && (#UnitSystem# = 6)
IfTrueAction12=[!SetOption MeasureOfUnits Formula "#*Var*# * 3.785"][!Update]
OnChangeAction=[!UpdateMeter OutputText][!Update]
DynamicVariables=1

[MeasureModes]
Measure=Calc
IfCondition=(#Mode# = 1)
IfTrueAction=[!SetOption StytemText Text "To Metric"][!Update]
IfFalseAction=[!SetOption StytemText Text "To Imperial"][!Update]
DynamicVariables=1

[MeasureUnitSystem]
Measure=Calc
IfCondition=(#UnitSystem# = 0)
IfTrueAction=[!SetOption BaseText Text "Unit System Converters"][!Update]
IfCondition2=(#UnitSystem# = 1)
IfTrueAction2=[!SetOption BaseText Text "Meters & Yards"][!Update]
IfCondition3=(#UnitSystem# = 2)
IfTrueAction3=[!SetOption BaseText Text "Kilograms & Pounds"][!Update]
IfCondition4=(#UnitSystem# = 3)
IfTrueAction4=[!SetOption BaseText Text "Farenheit & Celcius"][!Update]
IfCondition5=(#UnitSystem# = 4)
IfTrueAction5=[!SetOption BaseText Text "MPH  & KPH"][!Update]
IfCondition6=(#UnitSystem# = 5)
IfTrueAction6=[!SetOption BaseText Text "Inches  & Centimeters"][!Update]
IfCondition7=(#UnitSystem# = 6)
IfTrueAction7=[!SetOption BaseText Text "Gallons & Liters"][!Update]
DynamicVariables=1

;================================================

;================================================
; celcius * 9/5 +32 = farenheit

; farenheit -32 *5/9 = celcius
;=============================
; kg * 2.2 = lbs

; lbs * .45 = kg
;=============================
; kph * .62 = mph

; mph * 1.609 = kph
;=============================
; yards * 1.093 = meters

; meters * .914 = yards
;=============================
; gallons * 3.785 = liters

; liters * .264 = gallons
;=============================
;=============================

;=============================
; inches * 0.39 = cm

; cm * 2.54 = inches
;=============================
; milliliter * .0338 = oz

; oz * 29.57 = milliliters
User avatar
CodeCode
Posts: 1097
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Weird BEhavior - Or so it seems

Post by CodeCode »

eclectic-tech wrote: September 14th, 2022, 2:44 am I made a few mods to your "converter.ini" file:

Changed labels to show conversion direction 'To Metric' or 'To Imperial' (because 'British' and 'Metric' mean the same to me) :O
Escaped the #Var# in your !SetOption bangs in [MeasureOfUnits] section (#*Var*#)
Corrected revered formulas for Fahrenheit and Celsius
Corrected multiplier for MPH to KPH (was incorrectly set to 0.914 instead of 0.62)
Added zero integer to all decimal multipliers
Modified Command1 to show the output text after user input presses 'Enter'
Added !SetOptions to mouse scroll to reset the input and output 'Text' values
Added Middlemouseupaction to refresh skin
Commented out your formula notes at th bottom

Give this a try... and see if it helps.

Converter.ini

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!Zpos 0]
AccurateText=1
MiddleMouseUpAction=[!Refresh]

[Variables]
@include=#@#_ExtendPrefs.inc
Var=0

;================================================ Styles

[TextStyle]
FontFace=#TitleFont#
FontColor=#IconTint#
FontSize=#TitleSize#
StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1

[TextShapeStyle]
Shape=Rectangle 2,2,461,35,17 | StrokeWidth 2 | Stroke Color #EdgeColor# | Fill Color #FillColorButtons#
MouseScrollUpAction=[!SetOption "MeterInPut" Text "Enter"][!SetOption "OutPutText" Text "Output"][!SetVariable UnitSystem ((#UnitSystem#+1)%7)][!WriteKeyValue Variables UnitSystem "[#UnitSystem]" "#@#_ExtendPrefs.inc"][!Update]
MouseScrollDownAction=[!SetOption "MeterInPut" Text "Enter"][!SetOption "OutPutText" Text "Output"][!SetVariable UnitSystem ((#UnitSystem#=0)?6:(#UnitSystem#-1))][!WriteKeyValue Variables UnitSystem "[#UnitSystem]" "#@#_ExtendPrefs.inc"][!Update]
LeftMouseUpAction=[!SetVariable UnitSystem "0"][!Update]
DynamicVariables=1
AntiAlias=1

[BaseShapeTitle]
Meter=Shape
Shape=Rectangle 2,43,460,45,22 | StrokeWidth 4 | Stroke Color #EdgeColor# | Fill Color #FillColorButtons#
DynamicVariables=1
AntiAlias=1

[ButtonStyleGrad]
Shape=Rectangle 0,-5,45,45,22 | StrokeWidth 0 | Fill LinearGradient MyGradient1
MyGradient1=270 | #GradTop# ; 0,0 | #GradMid# ; 0.05 | 40,40,40,255 ; 0.25 | #GradMid# ; 0.75 | 20,20,20,255 ; 0.9
DynamicVariables=1
AntiAlias=1

[ButtonStyleFill]
Shape=Rectangle 5,0,35,35,17 | Fill Color #FillColorButtons# | StrokeWidth 0
DynamicVariables=1
AntiAlias=1

[ClickButtonStyle]
X=0
Y=5
W=35
H=35
ImageTint=#IconTint#
DynamicVariables=1
AntiAlias=1

[IconStyle]
ImageName=
ImageTint=#IconTint#
X=26
Y=47
DynamicVariables=1

[HoverStyle]
Shape=Rectangle 5,0,35,35,17 | Fill Color 0,0,0,1 | StrokeWidth 1 | Stroke Color #HoverTint#
DynamicVariables=1
Antialias=1
Hidden=1

;======================== Layout ================

[MeterBaseUnits]
Meter=Shape
MeterStyle=TextShapeStyle

[BaseText]
Meter=String
SolidColor=0,0,0,1
Y=22
X=230
FontFace=#TitleFont#
FontColor=#IconTInt#
FontSize=14
StringAlign=CenterCenter
DynamicVariables=1

[BaseShape]
Meter=Shape
MeterSTyle=BaseShapeTitle
DynamicVariables=1
AntiAlias=1

;=================================== Mode ===

[SystemGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=155
Y=48

[SystemFill]
Meter=Shape
MeterStyle=ButtonStyleFill
DynamicVariables=1
X=155
Y=48

[SystemHover]
Meter=shape
MeterStyle=HoverStyle
X=155
Y=48

[StytemText]
Meter=String
MeterStyle=TextStyle
X=250
Y=65
Text=#Mode#
DynamicVariables=1

[SystemIcon]
Meter=Image
ImageTint=#IconTint#
MeterStyle=ClickButtonStyle
X=160
Y=48
ImageName=#@#Icon0.png
MouseOverAction=[!SetOption SystemHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption SystemHover Hidden "1"][!Update]
LeftMouseDownAction=[!SetOption SystemIcon ImageName "#@#Icon1.png"][!Update]
LeftMouseUpAction=[!SetOption SystemIcon ImageName "#@#Icon0.png"][!SetVariable Mode "(1-#Mode#)"][!WriteKeyValue Variables Mode "[#Mode]" "#@#_ExtendPrefs.inc"][!Update]
DynamicVariables=1

[MeterInput]
Meter=String
X=55
Y=54
W=98
H=24
FontSize=15
FontColor=#IconTint#
SolidColor=15,15,15
AntiAlias=1
FontFace=Tele-Marines
Text=Enter

[MeasureInput]
Measure=Plugin
Plugin=InputText
X=55
Y=54
W=98
H=24
FontSize=15
FontColor=#EdgeColor#
SolidColor=15,15,15
FontFace=Tele-Marines
InputNumber=1
AntiAlias=1
InputLimit=6
Command1=[!SetVariable Var "$UserInput$"][!WriteKeyValue Variables Var "[#var]" "#@#_ExtendPrefs.inc"][!SetOption "MeterInPut" Text "[#*Var*]"][!SetOption "OutPutText" Text "[*MeasureOfUnits*]"][!Update]

;======================================== Input = 

[InputGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=5
Y=48

[InputFill]
Meter=Shape
MeterStyle=ButtonStyleFill
X=5
Y=48

[InputHover]
Meter=shape
MeterStyle=HoverStyle
X=5
Y=48

[ImputIcon]
Meter=Image
ImageTint=#IconTint#
MeterStyle=ClickButtonStyle
X=10
Y=48
ImageName=#@#Arrowright0.png
LeftMouseDownAction=[!SetOption ImputIcon ImageName """#@#Arrowright1.png"""][!Update]
MouseOverAction=[!SetOption InputHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption InputHover Hidden "1"][!Update]
LeftMouseUpAction=[!SetOption ImputIcon ImageName """#@#ArrowRight0.png"""][!CommandMeasure MeasureInput "ExecuteBatch 1"][!Update]
DynamicVariables=1

;============================== OutPut Section ==

[OutputOneGrad]
Meter=Shape
MeterStyle=ButtonStyleGrad
X=305
Y=48

[OutputOneFill]
Meter=Shape
MeterStyle=ButtonStyleFill
X=305
Y=48

[OutputHover]
Meter=shape
MeterStyle=HoverStyle
X=305
Y=48

[OutputText]
Meter=String
MeterStyle=TextStyle
X=396
Y=66
Text=Output
LeftMouseUpAction=[!Update]
DynamicVariables=1

[OutputIcon]
Meter=Image
ImageTint=#IconTint#
X=310
Y=48
MeterStyle=ClickButtonStyle
ImageName=#@#Set0.png
MouseOverAction=[!SetOption OutputHover Hidden "0"][!Update]
MouseLeaveAction=[!SetOption OutputHover Hidden "1"][!Update]
LeftMouseDownAction=[!SetOption OutputIcon ImageName "#@#Set1.png"][!Update]
LeftMouseUpAction=[!SetOption OutputIcon ImageName "#@#Set0.png"][!Update]
DynamicVariables=1

;============================ Stats Configs =====

;================================================

[MeasureOfUnits]
Measure=Calc
Formula=0
IfCondition=(#Mode# = 1) && (#UnitSystem# = 1)
IfTrueAction=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.914"][!Update]
IfCondition2=(#Mode# = 0) && (#UnitSystem# = 1)
IfTrueAction2=[!SetOption MeasureOfUnits Formula "#*Var*# * 1.093"][!Update]
IfCondition3=(#Mode# = 1) && (#UnitSystem# = 2)
IfTrueAction3=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.45"][!Update]
IfCondition4=(#Mode# = 0) && (#UnitSystem# = 2)
IfTrueAction4=[!SetOption MeasureOfUnits Formula "#*Var*# * 2.2"][!Update]
IfCondition5=(#Mode# = 1) && (#UnitSystem# = 3)
IfTrueAction5=[!SetOption MeasureOfUnits Formula "((#*Var*# -32) * 0.5556)"][!Update]
IfCondition6=(#Mode# = 0) && (#UnitSystem# = 3)
IfTrueAction6=[!SetOption MeasureOfUnits Formula "((#*Var*# * 1.8) +32)"][!Update]
IfCondition7=(#Mode# = 1) && (#UnitSystem# = 4)
IfTrueAction7=[!SetOption MeasureOfUnits Formula "#*Var*# * 1.609"][!Update]
IfCondition8=(#Mode# = 0) && (#UnitSystem# = 4)
IfTrueAction8=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.62"][!Update]
IfCondition9=(#Mode# = 1) && (#UnitSystem# = 5)
IfTrueAction9=[!SetOption MeasureOfUnits Formula "#*Var*# * 2.54"][!Update]
IfCondition10=(#Mode# = 0) && (#UnitSystem# = 5)
IfTrueAction10=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.39"][!Update]
IfCondition11=(#Mode# = 1) && (#UnitSystem# = 6)
IfTrueAction11=[!SetOption MeasureOfUnits Formula "#*Var*# * 0.264"][!Update]

IfCondition12=(#Mode# = 0) && (#UnitSystem# = 6)
IfTrueAction12=[!SetOption MeasureOfUnits Formula "#*Var*# * 3.785"][!Update]
OnChangeAction=[!UpdateMeter OutputText][!Update]
DynamicVariables=1

[MeasureModes]
Measure=Calc
IfCondition=(#Mode# = 1)
IfTrueAction=[!SetOption StytemText Text "To Metric"][!Update]
IfFalseAction=[!SetOption StytemText Text "To Imperial"][!Update]
DynamicVariables=1

[MeasureUnitSystem]
Measure=Calc
IfCondition=(#UnitSystem# = 0)
IfTrueAction=[!SetOption BaseText Text "Unit System Converters"][!Update]
IfCondition2=(#UnitSystem# = 1)
IfTrueAction2=[!SetOption BaseText Text "Meters & Yards"][!Update]
IfCondition3=(#UnitSystem# = 2)
IfTrueAction3=[!SetOption BaseText Text "Kilograms & Pounds"][!Update]
IfCondition4=(#UnitSystem# = 3)
IfTrueAction4=[!SetOption BaseText Text "Farenheit & Celcius"][!Update]
IfCondition5=(#UnitSystem# = 4)
IfTrueAction5=[!SetOption BaseText Text "MPH  & KPH"][!Update]
IfCondition6=(#UnitSystem# = 5)
IfTrueAction6=[!SetOption BaseText Text "Inches  & Centimeters"][!Update]
IfCondition7=(#UnitSystem# = 6)
IfTrueAction7=[!SetOption BaseText Text "Gallons & Liters"][!Update]
DynamicVariables=1

;================================================

;================================================
; celcius * 9/5 +32 = farenheit

; farenheit -32 *5/9 = celcius
;=============================
; kg * 2.2 = lbs

; lbs * .45 = kg
;=============================
; kph * .62 = mph

; mph * 1.609 = kph
;=============================
; yards * 1.093 = meters

; meters * .914 = yards
;=============================
; gallons * 3.785 = liters

; liters * .264 = gallons
;=============================
;=============================

;=============================
; inches * 0.39 = cm

; cm * 2.54 = inches
;=============================
; milliliter * .0338 = oz

; oz * 29.57 = milliliters
Woah! I really got to get used to escaping measure names for instsistences also ike this
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4885
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weird BEhavior - Or so it seems

Post by eclectic-tech »

CodeCode wrote: September 14th, 2022, 4:33 am Woah! I really got to get used to escaping measure names for instsistences also ike this
It can be confusing to know when to use Escaped syntax.

When using !SetOption or !WriteKeyValue to write a variable or measure for use in a section, you should use the Escaped syntax:
#*Var*#, [#*Var*], [*Measure*]. [&*Measure*] ...

If you do not use the Escape syntax the current value of the variable or measure is what is written (not the actual changing variable or measure), and that will never change when the variable or measure value changes.

Those are about the only times I seem to need to use the Escape syntax. :rosegift: