It is currently March 28th, 2024, 11:59 am

Extra Homework With System Tutorial Help

General topics related to Rainmeter.
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Extra Homework With System Tutorial Help

Post by H8z2Hux »

O.k. So I just finished the tutorial on making my own system skin and I have it set up so that when I hover my mouse over the c: it changes all the stats to D: (instead of hovering the mouse over the background).
But Now I want to do the same thing with the CPU meter so When I hover my mouse over the " % " sign on the CPU meter I Want it to Change all the readings to RAM if its possible.
can you please help
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Extra Homework With System Tutorial Help

Post by balala »

Please post the code you have so far.
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Re: Extra Homework With System Tutorial Help

Post by H8z2Hux »

Alright so Here's were i'm at

Code: Select all

[Rainmeter]
Update=1000

[Variables]
DarkBlue=255,255,255,100
MediumBlue=255,255,255,100
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=0,0,0,255
CurrentDrive=C:
Drive1=C:
Drive2=D:


//////////////////////////////////////////////////////////////
MEASURES
//////////////////////////////////////////////////////////////

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightBlue#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=-1

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[measureRAM]
Measure=PhysicalMemory
UpdateDivider=5

[MeasurePhysMemTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=3600

[MeasurePhysMemUsed]
Measure=PhysicalMemory
UpdateDivider=2

[MeasurePhysMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2



//////////////////////////////////////////////////////////////
CPU METERS
//////////////////////////////////////////////////////////////

[MeterBackground]
Meter=Image
X=0
Y=0
W=180
H=110
SolidColor=#AlmostBlack#

[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU

//////////////////////////////////////////////////////////////
DRIVER METERS
//////////////////////////////////////////////////////////////

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#
MouseOverAction=[!SetVariable CurrentDrive #Drive2#][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetVariable CurrentDrive #Drive1#][!UpdateMeasure *][!UpdateMeter *][!Redraw]

[MeterDriveBack]
Meter=Image
X=49
Y=63
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Extra Homework With System Tutorial Help

Post by CyberTheWorm »

I think you would need to do something with hiding and showing meters.
I did something similar but with a mouse click.
Something like this should work but you will need to add all the meters, I just tested changing the text and will only work if you mouse over the CPU text.
Nice meter by the way :thumbup:

Code: Select all

[Variables]
ShowRAM=[!HideMeter MeterCPUText][!ShowMeter MeterRAM]
ShowCPU=[!ShowMeter MeterCPUText][!HideMeter MeterRAM]

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU
MouseOverAction=#ShowRAM#
MouseLeaveAction=#ShowCPU#

[MeterRAM]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=RAM
Hidden=1
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Re: Extra Homework With System Tutorial Help

Post by H8z2Hux »

Thanx :D

But it still has a long way 2 go yet. :?
I've tried fiddling around With it some more and iv almost got it But I don't know how to switch those hidden RAM meters with the CPU meters :?
Can u please help me out and is there a page were I can find those Hidden/Show Commands
Here's were I am at so far

Code: Select all

[Rainmeter]
Update=1000

[Variables]
White=255,255,255,100
LightBlue=207,224,255,255
LightRed=250,148,135,255
Black=0,0,0,255
CurrentDrive=C:
Drive1=C:
Drive2=D:
ShowRAM=[!HideMeter MeterCPUText][!ShowMeter MeterRAMText]
ShowCPU=[!ShowMeter MeterCPUText][!HideMeter MeterRAMText]

//////////////////////////////////////////////////////////////
MEASURES
//////////////////////////////////////////////////////////////

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightBlue#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=-1

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[measureRAM]
Measure=PhysicalMemory
UpdateDivider=5

[MeasurePhysMemTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=3600

[MeasurePhysMemUsed]
Measure=PhysicalMemory
UpdateDivider=2

[MeasurePhysMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2



//////////////////////////////////////////////////////////////
CPU METERS
//////////////////////////////////////////////////////////////

[MeterBackground]
Meter=Image
X=0
Y=0
W=180
H=110
SolidColor=#Black#

[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1
MouseOverAction=#ShowRAM#
MouseLeaveAction=#ShowCPU#

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU


//////////////////////////////////////////////////////////////
RAM METERS
//////////////////////////////////////////////////////////////

[MeterRAMCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[MeterRAMCircle]
Meter=Roundline
MeasureName=MeasureRAM
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1
Hidden=1

[MeterRAMPercent]
Meter=String
MeasureName=MeasureRAM
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1
Hidden=1

[MeterRAMLine]
Meter=Line
MeasureName=MeasureRAM
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#
Hidden=1

[MeterRAMText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=RAM
Hidden=1


//////////////////////////////////////////////////////////////
DRIVER METERS
//////////////////////////////////////////////////////////////

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#
MouseOverAction=[!SetVariable CurrentDrive #Drive2#][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetVariable CurrentDrive #Drive1#][!UpdateMeasure *][!UpdateMeter *][!Redraw]

[MeterDriveBack]
Meter=Image
X=49
Y=63
W=130
H=38
SolidColor=#White#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B
Last edited by jsmorley on January 29th, 2017, 11:26 am, edited 1 time in total.
Reason: Edited to use [code] tags.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Extra Homework With System Tutorial Help

Post by balala »

H8z2Hux wrote:Thanx :D

But it still has a long way 2 go yet. :?
I've tried fiddling around With it some more and iv almost got it But I don't know how to switch those hidden RAM meters with the CPU meters :?
Can u please help me out and is there a page were I can find those Hidden/Show Commands
Here's were I am at so far
You're on the good way, just have to add further bangs to the ShowRAM and ShowCPU variables (within the [Variables] section).
Replace these variables with the following ones:

Code: Select all

[Variables]
...
ShowRAM=[!HideMeter MeterCPULine][!HideMeter MeterCPUText][!ShowMeter MeterRAMLine][!ShowMeter MeterRAMText][!Redraw]
ShowCPU=[!ShowMeter MeterCPULine][!ShowMeter MeterCPUText][!HideMeter MeterRAMLine][!HideMeter MeterRAMText][!Redraw]
See that when the MeterRAMText is shown / hidden, the appropriate MeterRAMLine meter should be shown / hidden as well. Same for the MeterCPUText and MeterCPULine meters.
The last [!Redraw] bang will "accelerate" the showing / hiding process. If you don't use them, the meters are shown / hidden on the next update cycle. Using them will make this instantaneous.
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Re: Extra Homework With System Tutorial Help

Post by H8z2Hux »

MAI MAN U ARE A GOD AT THIS :thumbup:

That 1 was doing my head in for the past 2 days Soo Glad that's over, Thanx a Million man.

Check it out I even added the old click ons so the % cpu /Ram button takes you to the task manager, and the C: Button goes to this pc :D

Code: Select all

[Rainmeter]
Update=1000

[Variables]
White=255,255,255,100
LightBlue=207,224,255,255
LightRed=250,148,135,255
Black=0,0,0,255
CurrentDrive=C:
Drive1=C:
Drive2=D:
ShowRAM=[!HideMeter CPU0][!ShowMeter RAM0][!HideMeter CPU1][!ShowMeter RAM1][!HideMeter CPU2][!ShowMeter RAM2]
ShowCPU=[!HideMeter RAM0][!ShowMeter CPU0][!HideMeter RAM1][!ShowMeter CPU1][!HideMeter RAM2][!ShowMeter CPU2]
ShowRAM2=[!HideMeter CPU3][!ShowMeter RAM3][!HideMeter CPU4][!ShowMeter RAM4]][!Redraw]
ShowCPU2=[!HideMeter RAM3][!ShowMeter CPU3][!HideMeter RAM4][!ShowMeter CPU4]][!Redraw]

//////////////////////////////////////////////////////////////
MEASURES
//////////////////////////////////////////////////////////////

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightBlue#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=-1

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[measureRAM]
Measure=PhysicalMemory
UpdateDivider=5

[MeasurePhysMemTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=3600

[MeasurePhysMemUsed]
Measure=PhysicalMemory
UpdateDivider=2

[MeasurePhysMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2



//////////////////////////////////////////////////////////////
CPU METERS
//////////////////////////////////////////////////////////////

[MeterBackground]
Meter=Image
X=0
Y=0
W=180
H=110
SolidColor=#Black#

[CPU4] ;CircleBack
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[CPU3] ;Circle
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[CPU1] ;Percent
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1
MouseOverAction=#ShowRAM#ShowRAM2#[!UpdateMeter *][!Redraw]
MouseLeaveAction=#ShowCPU##ShowCPU2#[!UpdateMeter *][!Redraw]


[CPU2] ;Line
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#

[CPU0] 
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU


//////////////////////////////////////////////////////////////
RAM METERS
//////////////////////////////////////////////////////////////

[RAM4] ;CircleBack
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[RAM3] ;Circle
Meter=Roundline
MeasureName=MeasureRAM
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1
Hidden=1

[RAM1] ;Percent
Meter=String
MeasureName=MeasureRAM
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1
Hidden=1
LeftMouseUpAction=["taskmgr.exe"]

[RAM2] ;Line
Meter=Line
MeasureName=MeasureRAM
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#
Hidden=1

[RAM0]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=RAM
Hidden=1



//////////////////////////////////////////////////////////////
DRIVER METERS
//////////////////////////////////////////////////////////////

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#White#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#
MouseOverAction=[!SetVariable CurrentDrive #Drive2#][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetVariable CurrentDrive #Drive1#][!UpdateMeasure *][!UpdateMeter *][!Redraw]
LeftMouseUpAction=["This PC.exe"]

[MeterDriveBack]
Meter=Image
X=49
Y=63
W=130
H=38
SolidColor=#White#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B
Last edited by jsmorley on January 29th, 2017, 2:11 pm, edited 1 time in total.
Reason: Please use [code] tags for your posted code.
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Re: Extra Homework With System Tutorial Help

Post by H8z2Hux »

Opps I missed a couple of redraws haha I se what u mean thou when I put them in it went from laggy to speedy :D

Thanx for all your help mate I couldn't have done it without ya :D :D :D
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Extra Homework With System Tutorial Help

Post by balala »

I'm glad if you could make it as you wanted. If I'm not wrong, you did it, right?
A few more tips:
  • there's no need to update all meters when you're changing an option of a single meter, with a !SetOption bang. Updating just the meter in question is completely enough. Eg: on the IfAboveAction / IfBelowAction options of the [MeasureCPU] measure, you're setting the color of the [MeterCPUPercent] meter, then you're updating each meter (using the [!UpdateMeter *] bang). No need to do all this, updating just the [MeterCPUPercent] would be enough. That's why I'd replace the [!UpdateMeter *] bang with [!UpdateMeter MeterCPUPercent] bang. Obviously if you do so, you should go through all your code and make everywhere the similar improvements. As I said, simply there's no need to update all meters every time.
  • in the MouseOverAction option of the [CPU1] meter, you have a typo: a # sign is missing. Its correct form would be: MouseOverAction=#ShowRAM#[color=#FF0000]#[/color]ShowRAM2#[!UpdateMeter *][!Redraw].
  • in Rainmeter the comments should be written on distinct lines. Usually [CPU1] ;Percent is wrong, its correct form would be:

    Code: Select all

    [CPU1]
    ;Percent
    (unlike to most programming languages - Rainmeter is not one!).
  • although a color code is composed by three or four numbers, it is a string and as such, you should include them into quotation marks each time you set them with a !SetOption bang. Eg in the !SetOption bangs used in the IfBelowAction and IfAboveAction options of the [MeasureCPU] the correct and complete forms of the !SetOption bangs would be [!SetOption MeterCPUPercent FontColor [color=#FF0000]"[/color]#LightRed#[color=#FF0000]"[/color]] respectively [!SetOption MeterCPUPercent FontColor [color=#FF0000]"[/color]#LightBlue#[color=#FF0000]"[/color]].
  • usually instead of the IfActions, lately we prefer to use IfConditions. They are more versatile, having a lot of advantages (in my opinion the IfActions not too far will be deprecated? - however, I'm not sure, this being just my opinion).
User avatar
H8z2Hux
Posts: 10
Joined: January 28th, 2017, 10:14 am

Re: Extra Homework With System Tutorial Help

Post by H8z2Hux »

Dear God Balala :welcome: :D :welcome:

Thanks for all the tips and stuff I really appreciate all the help you've been giving me and I'm sorry it took soo long to get back to you but after all that reading and writing on all that fist part of the skin I thought id have a break from it all and decided to start throwing some paint around creating me some boarders, buttons, mouse curses and windows icons :D

But now I got 1 more problem I was wondering if you could help me out with.
I've been trying to use the "IfConditions" bang for my C:/D: button, so when its above 80% the CPU3 (Green % Circle) changes colour, But I don't know if I was spelling it all wrong or if I had it in the wrong place or what :confused:
can you give me an example on how it would look please

And also Whenever I refresh the skin the top green circle disappears until I put my mouse over it, this only just started happening when I tried doing stuff to all those [!UpdateMeter *] so I thought id just leave them as they were the first way I had them but they never changed back :confused:

Here's where Ive gotten to so far

Code: Select all

[Rainmeter]
Update=1000
///////////////////////////////////////////////////////////////
BACKGROUND
///////////////////////////////////////////////////////////////

[MeterBackground]
Meter=Image
X=0
Y=0
W=185
H=150
SolidColor=#Black#

[Rainmeter]
Update=1000


///////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////

[Variables]
White=255,255,255,100
Grey=207,224,255,255
LightRed=250,148,135,255
Red=255,10,10,225
Green=28,118,23,225
Black=0,0,0,225
Gold=155,115,0,255
CurrentDrive=C:
Drive1=C:
Drive2=D:
ShowRAM=[!HideMeter CPU0][!ShowMeter RAM0][!HideMeter CPU1][!ShowMeter RAM1][!HideMeter CPU2][!ShowMeter RAM2][!Redraw]
ShowCPU=[!HideMeter RAM0][!ShowMeter CPU0][!HideMeter RAM1][!ShowMeter CPU1][!HideMeter RAM2][!ShowMeter CPU2][!Redraw]
ShowRAM2=[!HideMeter CPU3][!ShowMeter RAM3][!HideMeter CPU4][!ShowMeter RAM4][!Redraw]
ShowCPU2=[!HideMeter RAM3][!ShowMeter CPU3][!HideMeter RAM4][!ShowMeter CPU4][!Redraw]

//////////////////////////////////////////////////////////////
MEASURES
//////////////////////////////////////////////////////////////

[MeasureCPU]
Measure=CPU
IfAboveValue=29
IfAboveAction=[!SetOption CPU1 FontColor "#Red#"][!SetOption CPU2 SolidColor "#Red#"][!SetOption CPU3 LineColor "#Red#"][!UpdateMeter *][!Redraw]
IfBelowValue=30
IfBelowAction=[!SetOption CPU1 FontColor "#Black#"][!SetOption CPU2 SolidColor "#White#"][!SetOption CPU3 LineColor "#Green#"][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=-1

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[measureRAM]
Measure=PhysicalMemory
UpdateDivider=5
IfAbove1Value=49
IfAbove1Action=[!SetOption RAM1 FontColor "#Red#"][!SetOption RAM2 SolidColor "#Red#"][!UpdateMeter *][!Redraw]
IfBelow1Value=50
IfBelow1Action=[!SetOption RAM1 FontColor "#Black#"][!SetOption RAM2 SolidColor "#White#"][!UpdateMeter *][!Redraw]

//////////////////////////////////////////////////////////////
Button
//////////////////////////////////////////////////////////////

[Button1]
Meter=button
ButtonImage=#@#Images\Button.png
ButtonCommand=["Task Manager"]
W=38
H=38
X=9
Y=42
MouseOverAction=#ShowRAM##ShowRAM2#[!UpdateMeter *][!Redraw]
MouseLeaveAction=#ShowCPU##ShowCPU2#[!UpdateMeter *][!Redraw]
LeftMouseUpAction=["taskmgr.exe"]
ToolTipText=Open Task Manager

[Button2]
Meter=button
ButtonImage=#@#Images\Button.png
ButtonCommand=["Explorer.exe"]
W=38
H=38
X=9
Y=98
MouseOverAction=[!SetVariable CurrentDrive #Drive2#][!SetOption MeterDriveCircle LineColor "#Gold#"][!UpdateMeasure *][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetVariable CurrentDrive #Drive1#][!SetOption MeterDriveCircle LineColor "#Green#"][!UpdateMeasure *][!UpdateMeter *][!Redraw]
LeftMouseUpAction=["Explorer.exe"]
ToolTipText=Open Explorer

/////////////////////////////////////////////////////////////
Title
/////////////////////////////////////////////////////////////

[MeterTitle]
Meter=String
StringAlign=Center
X=100
Y=8
FontFace=
Fontsize=12
Fontcolor=#Gold#
StringStyle=Bold
AntiAlias=1
Text=SYSTEM
SolidColor=0,0,0,0

//////////////////////////////////////////////////////////////
CPU METERS
//////////////////////////////////////////////////////////////

[CPU4]
  ;CircleBack
Meter=Roundline
X=8
Y=40
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Black#
AntiAlias=1

[CPU3]
  ;Circle
Meter=Roundline
MeasureName=MeasureCPU
X=0r
Y=40
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Green#
AntiAlias=1

[CPU1]
  ;Percent
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#Black#
X=29
Y=60
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1

[CPU2]
  ;Line
Meter=Line
MeasureName=MeasureCPU
X=51
Y=40
W=130
H=38
LineCount=1
LineColor=#Gold#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#

[CPU0] 
  ;Text
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#Gold#
X=48
Y=35
StringStyle=Bold
AntiAlias=1
Text=CPU

//////////////////////////////////////////////////////////////
RAM METERS
//////////////////////////////////////////////////////////////

[RAM4]
  ;CircleBack
Meter=Roundline
X=8
Y=40
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Black#
AntiAlias=1

[RAM3]
  ;Circle
Meter=Roundline
MeasureName=MeasureRAM
X=8
Y=40
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Gold#
AntiAlias=1
Hidden=1

[RAM1]
  ;Percent
Meter=String
MeasureName=MeasureRAM
FontFace=Segoe UI
FontSize=8
FontColor=#Black#
X=29
Y=60
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
Percentual=1
Hidden=1


[RAM2]
  ;Line
Meter=Line
MeasureName=MeasureRAM
X=51
Y=40
W=130
H=38
LineCount=1
LineColor=#Gold#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#Black#
SolidColor=#White#
Hidden=1

[RAM0]
  ;Text
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#Gold#
X=48
Y=35
StringStyle=Bold
AntiAlias=1
Text=RAM
Hidden=1

//////////////////////////////////////////////////////////////
DRIVER METERS
//////////////////////////////////////////////////////////////

[MeterDriveCircleBack]
Meter=Roundline
X=8
Y=95
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Black#
AntiAlias=1

[MeterDriveCircle] 
Meter=Roundline
MeasureName=MeasureDriveUsed
X=8
Y=95
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#Green#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#Black#
X=29
Y=115
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#


[MeterDriveBack]
Meter=Image
X=51
Y=98
W=130
H=38
SolidColor=100,100,100,100


[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#Gold#
X=53
Y=96
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#Gold#
X=183
Y=96
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#Gold#
X=53
Y=113
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#Gold#
X=183
Y=113
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B
Last edited by fonpaolo on February 3rd, 2017, 2:50 pm, edited 1 time in total.
Reason: Please use the [code] tag
Post Reply