Sorry if this isn't very clear but hopefully it makes more sense to you than it does for me!
What I'm trying to do is to have an animated GIF's cycle speed dependant on a variable. Basically, when I can get the if formula sorted, then I'll be changing the input for a new PC to measure PSU power. In my current machine, it hasn't got a measurable PSU so this skin is set up with a volume plugin I use for another skin.
So, currently, what I want the skin to do is to cycle the GIF slower for lower volume levels and faster for higher volumes. I added some extra code for a text string to show me what the number is and that bit works, it's just the animation speed that doesn't ever change. I've been playing around all day and just can't get my attempts to work.
If that sounds like something which would be easy for you, I'd greatly appreciate your pearls of wisdom as I'm in way over my head . Here's the mess I have after countless adjustments throughout the day:
Code: Select all
[Rainmeter] Author=Alan Update=#UpdateSpeed# [Variables] UpdateSpeed=100 [ImageNumberCalc] Measure=Calc Formula=Counter % 90 [MeasureWin7Audio] Measure=Plugin Plugin=Win7AudioPlugin.dll ;[MeasurePowerCalc] ;Measure=Registry ;RegHKey=HKEY_CURRENT_USER ;RegKey=Software\FinalWire\AIDA64\SensorValues ;RegValue=Value.SCPUUTI [PercentageCalc] Measure=Calc Formula=MeasureWin7Audio Substitute="-1":"0" IfConditionMode=1 IfCondition1=(PercentageCalc <= 20) IfTrueAction1=[!SetVariable UpdateSpeed "100"] IfCondition2=(PercentageCalc <= 40) IfTrueAction2=[!SetVariable UpdateSpeed "80"] IfCondition3=(PercentageCalc <= 60) IfTrueAction3=[!SetVariable UpdateSpeed "60"] IfCondition4=(PercentageCalc <= 80) IfTrueAction4=[!SetVariable UpdateSpeed "40"] IfCondition5=(PercentageCalc <= 100) IfTrueAction5=[!SetVariable UpdateSpeed "20"] DynamicVariables=1 ;Forumla=(MeasureWin7Audio > 79) ? 1 : ((MeasureWin7Audio > 59) ? 2 : ((MeasureWin7Audio > 39) ? 3 : ((MeasureWin7Audio > 19) ? 4 : 5))) ;UpdateDivider=(1/#UpdateSpeed#) [MeterVolumePercent] Meter=String MeasureName=PercentageCalc FontColor=000,175,255,240 StringAlign=center StringEffect=Shadow StringStyle=Bold FontName=Ubuntu FontSize=16 Antialias=1 X=905 Y=10 Text="%1%" [MeterBarPosition] Meter=Image X=0 Y=0 ImageName=#@#PSU-[ImageNumberCalc].png AntiAlias=1 DynamicVariables=1 UpdateDivider=(100/#UpdateSpeed#)