Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 716

Help: Rainmeter Skins • Re: Help with Reducing Lines of Code

$
0
0
This is likely a terrible idea :Whistle
But, if you do not mind a slower update rate (say once a second), then you should be able to use a variable update counter... I cobbled the following code together just to see if I could get it to run. Have not extensively tested it, but it seems to be functional.
<< I was looking at the variables update in the LOG > SKINS section >>

Code:

[Rainmeter]Update=40[Variables]CPU0=0CPU1=0CPU2=0CPU3=0[CPUCounter]Measure=CalcFormula=Counter % 4[CPU]Measure=PluginPlugin=UsageMonitorCategory=Processor InformationCounter=% Processor UtilityName=0,[CPUCounter]OnChangeAction=[!SetVariable [#CURRENTSECTION][CPUCounter] [CPU:]]DynamicVariables=1[MeterCPU0]Meter=StringUpdateDivider=25Text=#CPU0#[MeterCPU1]Meter=StringUpdateDivider=25Text=#CPU1#[MeterCPU2]Meter=StringUpdateDivider=25Text=#CPU2#[MeterCPU3]Meter=StringUpdateDivider=25Text=#CPU3#

Statistics: Posted by Pickles7853 — Yesterday, 11:49 pm



Viewing all articles
Browse latest Browse all 716

Trending Articles