It is currently May 19th, 2024, 12:56 pm

Problem with dynamic colors

Get help with creating, editing & fixing problems with skins
theflclguy
Posts: 2
Joined: February 11th, 2013, 4:15 pm

Problem with dynamic colors

Post by theflclguy »

I am trying to have the color change based on the temperature of my CPU, but for some reason the meter does not get the substituted value.

I already looked through all the other threads about this I could find and even made a string meter to see what the calc value appears to be and it gives me the correct value.

Please help prevent me from going insane.

Code: Select all

[cputc1]
measure=calc
formula=cput1 > 55 ? -4 : cput1 > 50 ? -3 : cput1 > 40 ? -2 : -1
dyanmicvariables=1
Substitute="-4":"FFFFFF","-3":"64E6FF","-2":"0000FF","-3":"AA00FF","-1":"FF2B00"

Code: Select all

[cputmeter1]
meter=string
measurename=CPUt1
fontcolor=[cputc1]
text=%1°
stringalign=left
x=36
antialias=1
dyanmicvariables=1
User avatar
jsmorley
Developer
Posts: 22633
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with dynamic colors

Post by jsmorley »

theflclguy wrote:I am trying to have the color change based on the temperature of my CPU, but for some reason the meter does not get the substituted value.

I already looked through all the other threads about this I could find and even made a string meter to see what the calc value appears to be and it gives me the correct value.

Please help prevent me from going insane.

Code: Select all

[cputc1]
measure=calc
formula=cput1 > 55 ? -4 : cput1 > 50 ? -3 : cput1 > 40 ? -2 : -1
dyanmicvariables=1
Substitute="-4":"FFFFFF","-3":"64E6FF","-2":"0000FF","-3":"AA00FF","-1":"FF2B00"

Code: Select all

[cputmeter1]
meter=string
measurename=CPUt1
fontcolor=[cputc1]
text=%1°
stringalign=left
x=36
antialias=1
dyanmicvariables=1
You misspelled DynamicVariables
theflclguy
Posts: 2
Joined: February 11th, 2013, 4:15 pm

Re: Problem with dynamic colors

Post by theflclguy »

Thanks, I should have checked it out better.