It is currently June 16th, 2024, 5:11 pm

Repeat IfAboveAction in regular intervals

Get help with creating, editing & fixing problems with skins
Asagrim
Posts: 126
Joined: August 12th, 2011, 12:30 pm

Re: Repeat IfAboveAction in regular intervals

Post by Asagrim »

Thank you everyone! :D

I used smurfier's code and have been listening to it for minutes, works like a charm! :D


@jsmorley:
Where do i need to put that !DisableMeasure? Calc always confuses me! :(

EDIT:

[Ms_CPUTempCalc]
Measure=Calc
Formula=Ms_CPUTemp<Ms_CPUTempTjMax
IfAboveValue=0
IfAboveAction=!EnableMeasure cCalc
IfBelowValue=0
IfBelowAction=!DisableMeasure cCalc

Like this?
User avatar
Brian
Developer
Posts: 2697
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Repeat IfAboveAction in regular intervals

Post by Brian »

Correct me if I am wrong, but I believe you would want it to be "IfBelowValue=1"....or "IfEqualValue=0" and "IfEqualAction".

Conditional operators result in 1 for true, and 0 for false.

-Brian
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Repeat IfAboveAction in regular intervals

Post by smurfier »

Code: Select all

[Ms_CPUTempCalc]
Measure=Calc
Formula=Ms_CPUTemp<Ms_CPUTempTjMax
IfAboveValue=0
IfAboveAction=!EnableMeasure cCalc
IfBelowValue=1
IfBelowAction=!DisableMeasure cCalc
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Asagrim
Posts: 126
Joined: August 12th, 2011, 12:30 pm

Re: Repeat IfAboveAction in regular intervals

Post by Asagrim »

Thank you! You are right of course, it was past 1 AM so my brain was already half asleep! :D