It is currently April 20th, 2024, 5:10 am

Would like to change the locations of these boxes.

Get help with creating, editing & fixing problems with skins
Arminius
Posts: 6
Joined: June 1st, 2017, 2:06 pm

Would like to change the locations of these boxes.

Post by Arminius »

This is not my original work, found it and edited it, I'm not Stormknight.
So instead of arranging horizontally they arrange vertically, I tried to move them down individually and kind of got them to span out vertically but the boxpos's up the top kept separating them horizontally.
Would just like them to start at the top right and go downwards in alignment, what's the easiest way to do that?

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!AutoSelectScreen "1"]	-- This is critical for multiple monitor set-up

[Metadata]
Name=SK Neon Meters
Author=Stormknight
Information=Displays system information across top of the screen in dynamic sized meters.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0

[Variables]
Page=1;
@Include=Config\Styles.inc
@Include2=Config\Config.inc

; Defines the number of boxes across the screen - useful for the different versions.
; This is the STANDARD version with 5 boxes.
BoxQty = 5
; This is mostly positioning calculations, as they just wouldn't work when performed inline as part of the shape command etc. :(
BoxWidth=(#WORKAREAWIDTH#-(#BoxQty#*140)-30)/#BoxQty#
BoxPos1 = 20
BoxPos2 = #BoxWidth#+30
BoxPos3 = (2*#BoxWidth#)+40
BoxPos4 = (3*#BoxWidth#)+50
BoxPos5 = (4*#BoxWidth#)+60


; ====================================
; ========== BOX 1 - CPU LOAD ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox1]
Meter=Shape
Shape=Rectangle #BoxPos1#,22,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #CPUcolor#,255

; This is the text label above the graph.
[MeterLabelBox1]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=0
Text="CPU Load"

; Gets data from the rainmeter - this is CPU LOAD.
[MeasureDataBox1]
Measure=CPU

; Gets data for specific cores for quad core etc
[MeasureCPU1]
Measure=CPU
Processor=1

[MeasureCPU2]
Measure=CPU
Processor=2

[MeterGraphLineBox1]
Meter=Line
MeasureName=MeasureDataBox1
X=#BoxPos1#
Y=22
W=#BoxWidth#
H=50
LineCount=1
LineColor=#CPUcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox1]
Meter=Histogram
MeasureName=MeasureDataBox1
X=#BoxPos1#
Y=22
W=#BoxWidth#
H=50
PrimaryColor=#CPUcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox1]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureCPU1
MeasureName2=MeasureCPU2
X=(#BoxWidth#/2)+#BoxPos1#
Y=75
Scale=1
NumOfDecimals=0
Text=%1%     %2%

; ====================================
; ========== BOX 2 - MEMORY ==========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox2]
Meter=Shape
Shape=Rectangle #BoxPos2#,22,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #MEMcolor#,255

; This is the text label above the graph.
[MeterLabelBox2]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos2#
Y=0
Text="Memory"

; Gets data from the rainmeter - this is MEMORY.
[MeasureDataBox2]
Measure=PhysicalMemory
UpdateDivider=2

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

[MeterGraphLineBox2]
Meter=Line
MeasureName=MeasureDataBox2
X=#BoxPos2#
Y=22
W=#BoxWidth#
H=50
LineCount=1
LineColor=#MEMcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox2]
Meter=Histogram
MeasureName=MeasureDataBox6
X=#BoxPos2#
Y=22
W=#BoxWidth#
H=50
PrimaryColor=#MEMcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox2]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox2
MeasureName2=MeasurePhysMemTotal
X=(#BoxWidth#/2)+#BoxPos2#
Y=75
AutoScale=1
NumOfDecimals=1
Text="%1B / %2B"


; ====================================
; ========== BOX 3 - NETWORK IN ======
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox3]
Meter=Shape
Shape=Rectangle #BoxPos3#,22,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox3]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos3#
Y=0
Text="Network In"

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox3]
Measure=NetIn
Interface=Best
UpdateDivider=2

[MeterGraphLineBox3]
Meter=Line
MeasureName=MeasureDataBox3
X=#BoxPos3#
Y=22
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
AutoScale=1
GraphOrientation=Vertical

[MeterHistogramBox3]
Meter=Histogram
MeasureName=MeasureDataBox3
X=#BoxPos3#
Y=22
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
AutoScale=1
GraphOrientation=Vertical

[MeterDataTextBox3]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox3
X=(#BoxWidth#/2)+#BoxPos3#
Y=75
AutoScale=1
NumOfDecimals=1
Text="%1"

; ====================================
; ========== BOX 4 - NETWORK OUT =====
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox4]
Meter=Shape
Shape=Rectangle #BoxPos4#,22,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox4]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos4#
Y=0
Text="Network Out"

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox4]
Measure=NetOut
Interface=Best
UpdateDivider=2

[MeterGraphLineBox4]
Meter=Line
MeasureName=MeasureDataBox4
X=#BoxPos4#
Y=22
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox4]
Meter=Histogram
MeasureName=MeasureDataBox4
X=#BoxPos4#
Y=22
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox4]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox4
X=(#BoxWidth#/2)+#BoxPos4#
Y=75
AutoScale=1
NumOfDecimals=1
Text="%1"

; ====================================
; ========== BOX 5 - DRIVE C: ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox5]
Meter=Shape
Shape=Rectangle #BoxPos5#,22,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #HDDcolor#,255

; This is the text label above the graph.
[MeterLabelBox5]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos5#
Y=0
Text="Drive C:"

; Gets data from the Perfmon plugin - this is NETWORK.
[MeasureDataPerfmonDriveC]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="% Disk Time"
PerfMonInstance=C:
OnUpdateAction=[!UpdateMeasure MeasureDataBox5]

[MeasureDataBox5]
; Returns scaled down [MeasureDiskAccessC] measurement that represents the percent of time the given disk is processing read or write requests.
Measure=Calc
Formula=((MeasureDataPerfmonDriveC/100000) < 100 ? (MeasureDataPerfmonDriveC/100000) : 100)
MaxValue=100
MinValue=0
UpdateDivider=-1

[MeterGraphLineBox5]
Meter=Line
MeasureName=MeasureDataBox5
X=#BoxPos5#
Y=22
W=#BoxWidth#
H=50
LineCount=1
LineColor=#HDDcolor#,255
SolidColor=#BACKcolor#
MaxValue=100
MinValue=0
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox5]
Meter=Histogram
MeasureName=MeasureDataBox5
X=#BoxPos5#
Y=22
W=#BoxWidth#
H=50
PrimaryColor=#HDDcolor#,60
MaxValue=100
MinValue=0
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox5]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox5
X=(#BoxWidth#/2)+#BoxPos5#
Y=75
AutoScale=1
NumOfDecimals=0
Text="%1%"
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Would like to change the locations of these boxes.

Post by balala »

I've rewritten a few things in your code, here is what I got:

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!AutoSelectScreen "1"]   -- This is critical for multiple monitor set-up

[Metadata]
Name=SK Neon Meters
Author=Stormknight
Information=Displays system information across top of the screen in dynamic sized meters.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0

[Variables]
Page=1;
@Include=Config\Styles.inc
@Include2=Config\Config.inc

; Defines the number of boxes across the screen - useful for the different versions.
; This is the STANDARD version with 5 boxes.
BoxQty = 5
; This is mostly positioning calculations, as they just wouldn't work when performed inline as part of the shape command etc. :(
BoxWidth=(#WORKAREAWIDTH#-(#BoxQty#*140)-30)/#BoxQty#
BoxHeight=(#WORKAREAHEIGHT#-(#BoxQty#*140)-30)/#BoxQty#
BoxPos1 = 20
BoxPos2 = #BoxWidth#+30
BoxPos3 = (2*#BoxWidth#)+40
BoxPos4 = (3*#BoxWidth#)+50
BoxPos5 = (4*#BoxWidth#)+60

[StyleGraphLabels]
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1

[StyleGraphData]
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1

; ====================================
; ========== BOX 1 - CPU LOAD ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox1]
Meter=Shape
Shape=Rectangle #BoxPos1#,25,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #CPUcolor#,255

; This is the text label above the graph.
[MeterLabelBox1]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=0
Text="CPU Load"

; Gets data from the rainmeter - this is CPU LOAD.
[MeasureDataBox1]
Measure=CPU

; Gets data for specific cores for quad core etc
[MeasureCPU1]
Measure=CPU
Processor=1

[MeasureCPU2]
Measure=CPU
Processor=2

[MeterGraphLineBox1]
Meter=Line
MeasureName=MeasureDataBox1
X=-119r
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#CPUcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox1]
Meter=Histogram
MeasureName=MeasureDataBox1
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#CPUcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox1]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureCPU1
MeasureName2=MeasureCPU2
X=119r
Y=50r
Scale=1
NumOfDecimals=0
Text=%1%     %2%

; ====================================
; ========== BOX 2 - MEMORY ==========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox2]
Meter=Shape
Shape=Rectangle #BoxPos1#,(#BoxHeight#+42+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #MEMcolor#,255

; This is the text label above the graph.
[MeterLabelBox2]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(1*(#BoxHeight#+42))
Text="Memory"

; Gets data from the rainmeter - this is MEMORY.
[MeasureDataBox2]
Measure=PhysicalMemory
UpdateDivider=2

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

[MeterGraphLineBox2]
Meter=Line
MeasureName=MeasureDataBox2
X=-119r
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#MEMcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox2]
Meter=Histogram
MeasureName=MeasureDataBox6
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#MEMcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox2]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox2
MeasureName2=MeasurePhysMemTotal
X=119r
Y=53r
AutoScale=1
NumOfDecimals=1
Text="%1B / %2B"


; ====================================
; ========== BOX 3 - NETWORK IN ======
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox3]
Meter=Shape
Shape=Rectangle #BoxPos1#,(2*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox3]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(2*(#BoxHeight#+42))
Text="Network In"

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox3]
Measure=NetIn
Interface=Best
UpdateDivider=2

[MeterGraphLineBox3]
Meter=Line
MeasureName=MeasureDataBox3
X=-119r
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
AutoScale=1
GraphOrientation=Vertical

[MeterHistogramBox3]
Meter=Histogram
MeasureName=MeasureDataBox3
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
AutoScale=1
GraphOrientation=Vertical

[MeterDataTextBox3]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox3
X=119r
Y=53r
AutoScale=1
NumOfDecimals=1
Text="%1"

; ====================================
; ========== BOX 4 - NETWORK OUT =====
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox4]
Meter=Shape
Shape=Rectangle #BoxPos1#,(3*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox4]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(3*(#BoxHeight#+42))
Text="Network Out"

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox4]
Measure=NetOut
Interface=Best
UpdateDivider=2

[MeterGraphLineBox4]
Meter=Line
MeasureName=MeasureDataBox4
X=-119r
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox4]
Meter=Histogram
MeasureName=MeasureDataBox4
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox4]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox4
X=119r
Y=53r
AutoScale=1
NumOfDecimals=1
Text="%1"

; ====================================
; ========== BOX 5 - DRIVE C: ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox5]
Meter=Shape
Shape=Rectangle #BoxPos1#,(4*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #HDDcolor#,255

; This is the text label above the graph.
[MeterLabelBox5]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(4*(#BoxHeight#+42))
Text="Drive C:"

; Gets data from the Perfmon plugin - this is NETWORK.
[MeasureDataPerfmonDriveC]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="% Disk Time"
PerfMonInstance=C:
OnUpdateAction=[!UpdateMeasure MeasureDataBox5]

[MeasureDataBox5]
; Returns scaled down [MeasureDiskAccessC] measurement that represents the percent of time the given disk is processing read or write requests.
Measure=Calc
Formula=((MeasureDataPerfmonDriveC/100000) < 100 ? (MeasureDataPerfmonDriveC/100000) : 100)
MaxValue=100
MinValue=0
UpdateDivider=-1

[MeterGraphLineBox5]
Meter=Line
MeasureName=MeasureDataBox5
X=-119r
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#HDDcolor#,255
SolidColor=#BACKcolor#
MaxValue=100
MinValue=0
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox5]
Meter=Histogram
MeasureName=MeasureDataBox5
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#HDDcolor#,60
MaxValue=100
MinValue=0
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox5]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox5
X=119r
Y=53r
AutoScale=1
NumOfDecimals=0
Text="%1%"

[MeasureWidth]
Measure=Calc
Formula=(#WORKAREAWIDTH#-(#BoxQty#*140)-30)/#BoxQty#

[MeasureHeight]
Measure=Calc
Formula=(#WORKAREAHEIGHT#-(#BoxQty#*140)-30)/#BoxQty#
The most important change I made, was that where it was possible, I used relative positioning of successive meters. This opportunity was not used, each meter was positioned absolutely, which in such cases is not a very lucky choice. However, due to the used shape meters, using relative positioning everywhere wouldn't be a very easy possibility, I finally renounced.
Please take a look and let me know if you would like to change anything furtherly.
Arminius
Posts: 6
Joined: June 1st, 2017, 2:06 pm

Re: Would like to change the locations of these boxes.

Post by Arminius »

Thanks, there are commands there I didn't know could be done.
The output from that did bunch them up a bit vertically, so I went through it, eliminated stuff that seemed redundent and made a few edits, it's mostly doing exactly what I want now.

https://imgur.com/a/LGEug

If anyone comes after the final code was

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!AutoSelectScreen "1"]   -- This is critical for multiple monitor set-up

[Metadata]
Name=SK Neon Meters
Author=Stormknight
Information=Displays system information across top of the screen in dynamic sized meters.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0

[Variables]
Page=1;
@Include=Config\Styles.inc
@Include2=Config\Config.inc

; This is mostly positioning calculations, as they just wouldn't work when performed inline as part of the shape command etc. :(
BoxWidth=145
BoxHeight=70
BoxPos1 = 395

[StyleGraphLabels]
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTER
AntiAlias=1

[StyleGraphData]
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTER
AntiAlias=1

; ====================================
; ========== BOX 1 - CPU LOAD ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox1]
Meter=Shape
Shape=Rectangle #BoxPos1#,25,#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #CPUcolor#,255

; Gets data from the rainmeter - this is CPU LOAD.
[MeasureDataBox1]
Measure=CPU

; Gets data for specific cores for quad core etc
[MeasureCPU1]
Measure=CPU
Processor=1

[MeasureCPU2]
Measure=CPU
Processor=2

[MeterGraphLineBox1]
Meter=Line
MeasureName=MeasureDataBox1
X=#BoxPos1#
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#CPUcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox1]
Meter=Histogram
MeasureName=MeasureDataBox1
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#CPUcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox1]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureCPU1
MeasureName2=MeasureCPU2
X=(#BoxWidth#/2)+#BoxPos1#
Y=50r
Scale=1
NumOfDecimals=0
Text=CPU Load             %1%     %2%

; ====================================
; ========== BOX 2 - MEMORY ==========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox2]
Meter=Shape
Shape=Rectangle #BoxPos1#,(#BoxHeight#+42+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #MEMcolor#,255

; This is the text label above the graph.
[MeterLabelBox2]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(1*(#BoxHeight#+42))

; Gets data from the rainmeter - this is MEMORY.
[MeasureDataBox2]
Measure=PhysicalMemory
UpdateDivider=2

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

[MeterGraphLineBox2]
Meter=Line
MeasureName=MeasureDataBox2
X=#BoxPos1#
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#MEMcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox2]
Meter=Histogram
MeasureName=MeasureDataBox6
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#MEMcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox2]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox2
MeasureName2=MeasurePhysMemTotal
X=(#BoxWidth#/2)+#BoxPos1#
Y=53r
AutoScale=1
NumOfDecimals=1
Text="Memory       %1B / %2B"


; ====================================
; ========== BOX 3 - NETWORK IN ======
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox3]
Meter=Shape
Shape=Rectangle #BoxPos1#,(2*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox3]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(2*(#BoxHeight#+42))

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox3]
Measure=NetIn
Interface=Best
UpdateDivider=2

[MeterGraphLineBox3]
Meter=Line
MeasureName=MeasureDataBox3
X=#BoxPos1#
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
AutoScale=1
GraphOrientation=Vertical

[MeterHistogramBox3]
Meter=Histogram
MeasureName=MeasureDataBox3
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
AutoScale=1
GraphOrientation=Vertical

[MeterDataTextBox3]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox3
X=(#BoxWidth#/2)+#BoxPos1#
Y=53r
AutoScale=1
NumOfDecimals=1
Text="Network In                     %1"

; ====================================
; ========== BOX 4 - NETWORK OUT =====
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox4]
Meter=Shape
Shape=Rectangle #BoxPos1#,(3*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #NETcolor#,255

; This is the text label above the graph.
[MeterLabelBox4]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(3*(#BoxHeight#+42))

; Gets data from the rainmeter - this is NETWORK.
[MeasureDataBox4]
Measure=NetOut
Interface=Best
UpdateDivider=2

[MeterGraphLineBox4]
Meter=Line
MeasureName=MeasureDataBox4
X=#BoxPos1#
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#NETcolor#,255
SolidColor=#BACKcolor#
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox4]
Meter=Histogram
MeasureName=MeasureDataBox4
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#NETcolor#,60
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox4]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox4
X=(#BoxWidth#/2)+#BoxPos1#
Y=53r
AutoScale=1
NumOfDecimals=1
Text="Network Out                %1"

; ====================================
; ========== BOX 5 - DRIVE C: ========
; ====================================

; This is the rectangle that each graph sits within.
[MeterOutlineBox5]
Meter=Shape
Shape=Rectangle #BoxPos1#,(4*(#BoxHeight#+42)+25),#BoxWidth#,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke Color #HDDcolor#,255

; This is the text label above the graph.
[MeterLabelBox5]
Meter=String
MeterStyle=StyleGraphLabels
X=(#BoxWidth#/2)+#BoxPos1#
Y=(4*(#BoxHeight#+42))

; Gets data from the Perfmon plugin - this is NETWORK.
[MeasureDataPerfmonDriveC]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="% Disk Time"
PerfMonInstance=C:
OnUpdateAction=[!UpdateMeasure MeasureDataBox5]

[MeasureDataBox5]
; Returns scaled down [MeasureDiskAccessC] measurement that represents the percent of time the given disk is processing read or write requests.
Measure=Calc
Formula=((MeasureDataPerfmonDriveC/100000) < 100 ? (MeasureDataPerfmonDriveC/100000) : 100)
MaxValue=100
MinValue=0
UpdateDivider=-1

[MeterGraphLineBox5]
Meter=Line
MeasureName=MeasureDataBox5
X=#BoxPos1#
Y=25r
W=#BoxWidth#
H=50
LineCount=1
LineColor=#HDDcolor#,255
SolidColor=#BACKcolor#
MaxValue=100
MinValue=0
AntiAlias=1
LineWidth=2
GraphOrientation=Vertical

[MeterHistogramBox5]
Meter=Histogram
MeasureName=MeasureDataBox5
X=0r
Y=0r
W=#BoxWidth#
H=50
PrimaryColor=#HDDcolor#,60
MaxValue=100
MinValue=0
AntiAlias=1
GraphOrientation=Vertical

[MeterDataTextBox5]
Meter=String
MeterStyle=StyleGraphData
MeasureName=MeasureDataBox5
X=(#BoxWidth#/2)+#BoxPos1#
Y=53r
AutoScale=1
NumOfDecimals=0
Text="Drive C:                        %1%"
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Would like to change the locations of these boxes.

Post by balala »

Arminius wrote:

Code: Select all

OnRefreshAction=[!AutoSelectScreen "1"]   -- This is critical for multiple monitor set-up
This is not a very good idea. I mean in Rainmeter, we're commenting out some options (lines) with semicolon, not with double dash. Plus usually take into account to put this comment into the next row, not at the end of an existing one. This way, you can avoid a lot of troubles.
Arminius
Posts: 6
Joined: June 1st, 2017, 2:06 pm

Re: Would like to change the locations of these boxes.

Post by Arminius »

balala wrote:This is not a very good idea. I mean in Rainmeter, we're commenting out some options (lines) with semicolon, not with double dash. Plus usually take into account to put this comment into the next row, not at the end of an existing one. This way, you can avoid a lot of troubles.
ok, will do.