Register    Login    IRC Chat    Search    Google

Board index » Customizing » Tips & Tricks




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Thu May 28, 2009 8:26 pm 
Offline
User avatar

Joined: Tue May 05, 2009 7:28 am
Posts: 122
hey guys , here's the code and steps to get usage data for your dual cored processor in Vista., many of you with vista might have trouble with this.., so here what u have to do....

the code

Code:
;=================================================
; Rainmeter configuration file
; Updated April 19, 2009
;
; I owe thanks for:
; NonartGrey by RRunner
; MultiCPU by Rainy
;
;=================================================

;[BEGIN CONFIG FILE]==============================

[Rainmeter]
Author=Jeffrey Morley
BackgroundMode=1
Update=500
AppVersion=14001

[Variables]
FontColor=255, 255, 255, 150
FontFace=Tahoma
BarColor=255, 255, 255, 64




;[CPU NAME]=======================================

[MeasureCPU]
Measure=CPU
UpdateDivider=2

[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=ProcessorNameString
UpdateDivider=30

[MeterCPUName]
Meter=STRING
MeasureName=MeasureCPUName
X=15
Y=17r
FontColor=#FontColor#
FontSize=8
FontFace=#FontFace#
AntiAlias=1
Text="%1"

;[CPU CLOCK SPEED]================================

[MeasureCPUMHz]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=MHZ
UpdateDivider=30

[MeterMHz]
Meter=STRING
MeasureName=MeasureCPUMHz
X=15
Y=15r
FontColor=#FontColor#
FontSize=8
FontFace=#FontFace#
AntiAlias=1
Text="Clock Speed - %1 MHz"

;[GATHER CPU UTILIZATION]=========================

[MeasureCPU0]
Measure=Plugin
Plugin=Perfmon.dll
PerfMonObject="Processor"
PerfMonInstance=0
PerfMonCounter="% Processor Time"
PerfMonDifference=1
InvertMeasure=1

[MeasureCPU1]
Measure=Plugin
Plugin=Perfmon.dll
PerfMonObject="Processor"
PerfMonInstance=1
PerfMonCounter="% Processor Time"
PerfMonDifference=1
InvertMeasure=1

;[CPU0 UTILIZATION]===============================

[MeasureCPU0%]
MeasureName=MeasureCPU0
Meter=STRING
Percentual=1
X=15
Y=20r
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=9
StringAlign=LEFT
FontFace=#FontFace#
NumOfDecimals=1
Text="CPU0 Usage: %1%"
AntiAlias=1

[MeterCPUGraph0]
Meter=Line
MeasureName=MeasureCPU0
Percentual=1
X=10R
Y=0r
H=12
W=40
LineCount=1
LineColor=255, 255, 255, 64

;[CPU1 UTILIZATION]===============================

[MeasureCPU1%]
MeasureName=MeasureCPU1
Meter=STRING
Percentual=1
X=15
Y=20r
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=9
StringAlign=LEFT
FontFace=#FontFace#
NumOfDecimals=1
Text="CPU1 Usage: %1%"
AntiAlias=1

[MeterCPUGraph1]
Meter=Line
MeasureName=MeasureCPU1
Percentual=1
X=10R
Y=0r
H=12
W=40
LineCount=1
LineColor=255, 255, 255, 64




its really a basic simple skin., its looks like this

Image


modify it according to you needs!!


and finally the magic words....,

(i had a problem earlier , the skin used to show 100% usage for both cores!! which is not true!! :? but the solution is below :D )

TO GET THIS TO WORK IN VISTA IF AND ONLY IF THE SKIN IS NOT SHOWING THE RIGHT VALUES
then

1)open CMD as ADMINISTRATOR (just type 'cmd' in search provided in your start menu, right click 'cmd.exe' and select 'run as administrator')

2) then paste this
Code:
lodctr /R


3) thats it!! u will have your skin showing the exact usage stats of each of your cores!!

:mrgreen:


if u have any doubts , i am always happy to help so fire away!! :mrgreen:

credits to all 'raineers' , especially 'Klexur' and 'jsmorley' !! :)


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Tue Aug 11, 2009 3:02 am 
Offline

Joined: Tue Aug 11, 2009 2:57 am
Posts: 7
Thanks!

Now, I have a question...

Is there any chance to show the ClockSpeed in Ghz?
How is the code?


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Tue Aug 11, 2009 1:31 pm 
Offline
User avatar

Joined: Wed Jun 10, 2009 12:44 pm
Posts: 1278
Location: Sweden
gona* wrote:
Thanks!

Now, I have a question...

Is there any chance to show the ClockSpeed in Ghz?
How is the code?


Try to just add the line AutoScale=1 in the meter or the measure.

_________________
V.I.S.O.R
I don't think, therefor I'm not.


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 1:08 am 
Offline

Joined: Mon Jul 20, 2009 3:15 am
Posts: 12
Please help!

I have a problem running this meter.

It writes "This skin needs Rainmeter version 0.14.1 or newer. It might not function as well as it should"

Is there any way I can run this meter on my version of rainmter?

I hav a question too!

how can I put "E7300 @ 2.66GHz" part right below "Intel(R) Core(TM)2 Duo CPU" and let "Clock speed 0 1600MHz" follow after?

What I mean is that I wana put things like this:

Intel(R) Core(TM)2 Duo CPU
E7300 @ 2.66GHz
Clock speed 0 1600MHz

instead of

Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz
Clock speed 0 1600MHz

Thanks :)


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 1:33 am 
Offline
Developer
User avatar

Joined: Sun Apr 19, 2009 11:02 pm
Posts: 3913
Location: Fairfax, VA
FrienZ wrote:
Please help!

I have a problem running this meter.

It writes "This skin needs Rainmeter version 0.14.1 or newer. It might not function as well as it should"

Is there any way I can run this meter on my version of rainmter?

I hav a question too!

how can I put "E7300 @ 2.66GHz" part right below "Intel(R) Core(TM)2 Duo CPU" and let "Clock speed 0 1600MHz" follow after?

What I mean is that I wana put things like this:

Intel(R) Core(TM)2 Duo CPU
E7300 @ 2.66GHz
Clock speed 0 1600MHz

instead of

Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz
Clock speed 0 1600MHz

Thanks :)


Let's start with the basics. What version of Rainmeter are you running? (use the system tray icon and click "about")

_________________



Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 5:20 am 
Offline

Joined: Mon Jul 20, 2009 3:15 am
Posts: 12
jsmorley wrote:
Let's start with the basics. What version of Rainmeter are you running? (use the system tray icon and click "about")


hmm.. I hav Rainmeter version 0.14 (32-bit) Build on Jan 20 2006

should I update my rainmeter?


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 6:03 am 
Offline
Developer
User avatar

Joined: Sun Apr 19, 2009 11:02 pm
Posts: 3913
Location: Fairfax, VA
FrienZ wrote:
jsmorley wrote:
Let's start with the basics. What version of Rainmeter are you running? (use the system tray icon and click "about")


hmm.. I hav Rainmeter version 0.14 (32-bit) Build on Jan 20 2006

should I update my rainmeter?


I would...

_________________



Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 11:55 am 
Offline
User avatar

Joined: Wed Jun 10, 2009 12:44 pm
Posts: 1278
Location: Sweden
Yes. An update would indeed be good for you.
At least if you want to be able to use all the "new and supercool!" features and skins.

_________________
V.I.S.O.R
I don't think, therefor I'm not.


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 1:15 pm 
Offline

Joined: Mon Jul 20, 2009 3:15 am
Posts: 12
jsmorley wrote:

I would...


Okay.. Now Im not having any error messages anymore :D

but how can I change 2 line meter to 3 line meter?

Help please!


Top 
 Profile  
 
 Post subject: Re: DUAL CPU METER for VISTA., it's really working!!
 Post Posted: Sat Aug 15, 2009 1:23 pm 
Offline
Developer
User avatar

Joined: Sun Apr 19, 2009 11:02 pm
Posts: 3913
Location: Fairfax, VA
FrienZ wrote:
jsmorley wrote:

I would...


Okay.. Now Im not having any error messages anymore :D

but how can I change 2 line meter to 3 line meter?

Help please!


Ok.. What you need to do is use the W= and H= statements on your meter. Set the W= to more or less the amount of pixels you want on the first "line" and the H= to be high enough to hold two lines of text at your current font size. Then be sure to add "ClipString=1" and Rainmeter will "wrap" the text on two lines. If it doesn't, and you get "this is a long line of..." instead, then you heed to bump up the H= a bit. There must be enough "height" for the text to wrap, or ClipString will truncate the text and put an ellipse at the end instead.

[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=ProcessorNameString
UpdateDivider=3600

[MeterCPUName]
Meter=STRING
MeasureName=MeasureCPUName
H=30
W=150
X=0
Y=0
FontColor=255,255,255
FontSize=8
FontFace=Tahoma
Clipstring=1
AntiAlias=1
Text="%1"

You might have to move meters below this one down some to compensate for it taking up more room, unless you used "Y=10r" (the "r" means "relative" to the previous meter) on all following meters.

_________________



Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next

Board index » Customizing » Tips & Tricks


Who is online

Users browsing this forum: No registered users and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Donations for Rainmeter and the Rainmeter Community are now being accepted.

Your donations are greatly appreciated by all the community.