It is currently April 19th, 2024, 4:49 am

problem with "Disabled"

Get help with creating, editing & fixing problems with skins
nikko
Posts: 44
Joined: December 5th, 2017, 5:58 pm

problem with "Disabled"

Post by nikko »

why this don't work please help:


...
Disabled=(#showHours#=0) || ((#showMinutes#=0) && (#showSeconds#=0))
DynamicVariable=1

when showHours=0 it works okay while when i have showMinutes=0 and showSeconds=0 it does not disable the measure.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: problem with "Disabled"

Post by jsmorley »

nikko wrote: February 9th, 2021, 3:17 pm why this don't work please help:


...
Disabled=(#showHours#=0) || ((#showMinutes#=0) && (#showSeconds#=0))
DynamicVariable=1

when showHours=0 it works okay while when i have showMinutes=0 and showSeconds=0 it does not disable the measure.
It's DynamicVariables, not DynamicVariable.
nikko
Posts: 44
Joined: December 5th, 2017, 5:58 pm

Re: problem with "Disabled"

Post by nikko »

my mistake here. in code it correct. it does not work with DynamicVariables=1 too. what is wrong with this???
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: problem with "Disabled"

Post by jsmorley »

nikko wrote: February 9th, 2021, 3:35 pm my mistake here. in code it correct. it does not work with DynamicVariables=1 too. what is wrong with this???
Not sure. It works for me...

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]
showHours=1
showMinutes=0
showSeconds=0

[MeasureCalc]
Measure=Calc
Formula=1
Disabled=(#showHours#=0) || ((#showMinutes#=0) && (#showSeconds#=0))
DynamicVariables=1

[MeterCalc]
Meter=String
MeasureName=MeasureCalc
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
nikko
Posts: 44
Joined: December 5th, 2017, 5:58 pm

Re: problem with "Disabled"

Post by nikko »

my fault. i see now. thank you.