It is currently March 28th, 2024, 7:54 pm

Removable Drives

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Removable Drives

Post by sl23 »

Ok, after looking at it in depth all day, I see how things work now, still a bit hazy but I do get it.

I've managed to get the code I need into my skin to suit my needs, but now I keep getting errors. Basically, it's the IfCondition causing the problem and won't hide the meters when ejecting a disc causing me to be back to square one! AARRRRGGGHHH!!!

There's also a web parser error for some reason. It has been working up til some time this evening.

I am currently in the process of merging the code you supplied so styles are a bit messy though everything is working as it should, other than what has been mentioned.

I think the best thing is to show the complete code as it stands now, I've spent the last 3 hours trying to get this to work when I found the error and can't figure out why it's happening. Ok, here it is:

Code: Select all

; TO DO:
; 1. ProgressBar - ToolTipText=SongTime


[Rainmeter]
Author=sl23
Update=1000
Background=#@#Bg-illustro.png
;Background=#@#Bg-Soita-V.png
BackgroundMode=3
BackgroundMargins=0,34,0,30
;BackgroundMargins=left,top,right,bottom
DynamicWindowSize=1
MouseOverAction=[!CommandMeasure mLua1 Pause=1] [!CommandMeasure mLua2 Pause=1] [!CommandMeasure mLua3 Pause=1] [!Redraw]
MouseLeaveAction=[!CommandMeasure mLua1 Pause,Timer=0,0] [!CommandMeasure mLua2 Pause,Timer=0,0] [!CommandMeasure mLua3 Pause,Timer=0,0] [!Redraw]
AccurateText=1

[Metadata]
Author=poiru
Name= SideBar
Description=A complete system skin using illustro as a sidebar

;[SideBar]
;WindowX=(#ScreenAreaX# + (#ScreenAreaWidth# - 210))
;WindowY=(#ScreenAreaY# + 10)

;---------------------------------------------------------------------
; STYLES
;---------------------------------------------------------------------
[style-AllText]
FontFace=Trebuchet MS
FontSize=10
FontColor=255,255,255
AntiAlias=1
ClipString=2

[style-DriveLabel]
Percentual=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
X=12
Y=2R

[style-DriveValue]
StringAlign=Right
FontColor=255,255,0
NumOfDecimals=1
AutoScale=1
Text="%1B"
X=196
Y=0r

[style-%]
FontFace=Trebuchet MS
FontSize=8
Text="%"
FontColor=255,255,255
AntiAlias=1
ClipString=2

[styleBar]
BarColor=235,170,0,255
BarOrientation=Horizontal
SolidColor=255,255,255,50
X=12
Y=15r
W=185
H=1

[style-RoundBar]
LineLength=30
LineStart=24
LineColor=128,255,0,70
StartAngle=-1.570796325
RotationAngle=6.2831853
Antialias=1
Solid=1

;---------------------------------------------------------------------
; TITLE
;---------------------------------------------------------------------
[Title]
Meter=String
MeterStyle=style-AllText
StringAlign=Center
StringStyle=Bold
FontFace=Corbel
FontColor=255,255,0
FontSize=14
Text="- SYSTEM -"
LeftMouseUpAction=!Execute ["taskmgr.exe"]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "255,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
ToolTipText="Task Manager"
X=110
Y=8

[RefreshSkin]
Meter=Image
ImageName=#@#Refresh.png
LeftMouseUpAction=!Refresh "Soita+System\SideBar"
ToolTipText="Refresh"
X=10
Y=r
W=25
H=25

;---------------------------------------------------------------------
; DISK - C:/
;---------------------------------------------------------------------
[mC:Label]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mC:Free]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mC:Total]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
Total=1
UpdateDivider=2
Substitute=".0":""
IfCondition=mC:Total = 0
IfTrueAction=[!HideMeterGroup "Disk-C"][!UpdateMeter *][!Redraw]
IfFalseAction=[!ShowMeterGroup "Disk-C"][!UpdateMeter *][!Redraw]
DynamicVariables=1

[C:Label]
Meter=String
MeterStyle=style-AllText | style-DriveLabel
MeasureName=mC:Free
MeasureName2=mC:Total
MeasureName3=mC:Label
Text="C:/ %1 %"
LeftMouseUpAction=!Execute ["C:\"]
ToolTipText="Open ~ #CRLF#C:/ %3#CRLF#%2B"
Group=Disk-C
Y=40

[C:Value]
Meter=String
MeterStyle=style-AllText | style-DriveValue
MeasureName=mC:Free
FontColor=0,255,255
Text="%1B"
Group=Disk-C

[mC:Used]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
Group=Disk-C
UpdateDivider=2
InvertMeasure=1

[C:Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mC:Used
Group=Disk1

;---------------------------------------------------------------------
; DISK - D:/
;---------------------------------------------------------------------
[mD:Label]
Measure=FreeDiskSpace
Drive=D:
UpdateDivider=2
Label=1

[mD:Free]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mD:Total]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
Total=1
UpdateDivider=2
Substitute=".0":""
IfCondition=mD:Total = 0
IfTrueAction=[!SetOptionGroup "Disk-D" Y "0R"][!HideMeterGroup "Disk-D"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-D" Y ""][!ShowMeterGroup "Disk-D"][!UpdateMeter *][!Redraw]
DynamicVariables=1

[D:Label]
Meter=String
MeterStyle=style-AllText | style-DriveLabel
MeasureName=mD:Free
MeasureName2=mD:Total
MeasureName3=mD:Label
Text="D:/ %1 %"
LeftMouseUpAction=!Execute ["D:\"]
ToolTipText="Open ~ #CRLF#D:/ %3#CRLF#%2B"
Group=Disk-D

[D:Value]
Meter=String
MeterStyle=style-AllText | style-DriveValue
MeasureName=mD:Free
FontColor=0,255,255
Text="%1B"
Group=Disk-D

[mD:Used]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
Group=Disk-D
UpdateDivider=2
InvertMeasure=1
; 1 Returns inverted value of FreeDiskSpace (i.e. used disk space)

[D:Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mD:Used
Group=Disk-D

;---------------------------------------------------------------------
; DISK - E:/
;---------------------------------------------------------------------
[mE:Label]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mE:Free]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mE:Total]
Measure=FreeDiskSpace
Drive=E:
Total=1
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""
IfCondition=mE:Total = 0
IfTrueAction=[!SetOptionGroup "Disk-E" Y "0R"][!HideMeterGroup "Disk-E"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-E" Y ""][!ShowMeterGroup "Disk-E"][!UpdateMeter *][!Redraw]

[E:Label]
Meter=String
MeterStyle=style-AllText | style-DriveLabel
MeasureName=mE:Free
MeasureName2=mE:Total
MeasureName3=mE:Label
Text="E:/ %1 %"
LeftMouseUpAction=!Execute ["E:\"]
ToolTipText="Open ~ #CRLF#E:/ %3#CRLF#%2B"
Group=Disk-E
;Hidden=1

[E:Value]
Meter=String
MeterStyle=style-AllText | style-DriveValue
MeasureName=mE:Free
FontColor=0,255,255
Text="%1B"
Group=Disk-E
;Hidden=1

[mE:Used]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
Group=Disk-E
UpdateDivider=2
InvertMeasure=1
;Hidden=1

[E:Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mE:Used
Group=Disk-E
;Hidden=1

;---------------------------------------------------------------------
; DISK - F:/
;---------------------------------------------------------------------
[mF:Label]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mF:Free]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mF:Total]
Measure=FreeDiskSpace
Drive=F:
Total=1
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""
IfCondition=mF:Total = 0
IfTrueAction=[!SetOptionGroup "Disk-F" Y "0R"][!HideMeterGroup "Disk-F"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-F" Y ""][!ShowMeterGroup "Disk-F"][!UpdateMeter *][!Redraw]
DynamicVariables=1

[F:Label]
Meter=String
MeterStyle=style-AllText | style-DriveLabel
MeasureName=mF:Free
MeasureName2=mF:Total
MeasureName3=mF:Label
Text="F:/ %1 %"
LeftMouseUpAction=!Execute ["F:\"]
ToolTipText="Open ~ #CRLF#F:/ %3#CRLF#%2B"
Group=Disk-F

[F:Value]
Meter=String
MeterStyle=style-AllText | style-DriveValue
MeasureName=mF:Free
FontColor=0,255,255
Text="%1B"
Group=Disk-F

[mF:Used]
Measure=FreeDiskSpace
Drive=F:
Group=Disk-F
UpdateDivider=2
InvertMeasure=1
; 1 Returns inverted value of FreeDiskSpace (i.e. used disk space)

[F:Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mF:Used
Group=Disk-F

;---------------------------------------------------------------------
; CPU
;---------------------------------------------------------------------
[mCPU]
Measure=CPU
Processor=0

[CPU-Label]
Meter=String
MeterStyle=style-AllText
Text="CPU"
X=12
Y=140

[CPU-Value]
Meter=String
MeterStyle=style-AllText
StringAlign=Right
MeasureName=mCPU
Text="%1"
X=89r
Y=0r

[CPU-Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mCPU
X=-90r
Y=15r
W=100

[CPU-%-Label]
Meter=String
MeterStyle=style-%
X=92r
Y=-12r

;---------------------------------------------------------------------
; RAM
;---------------------------------------------------------------------
[mRAM-Total]
Measure=PhysicalMemory
Total=1
UpdateDivider=5

[mRAM-Free]
Measure=PhysicalMemory
UpdateDivider=5

[RAM-Label]
Meter=String
MeterStyle=style-AllText
MeasureName=mRAM-Total
Text="RAM"
ToolTipText="Total RAM ~ #CRLF# %1B"
AutoScale=1
Substitute=".0":""
X=-91r
Y=17r

[RAM-Value]
Meter=String
MeterStyle=style-AllText
StringAlign=Right
MeasureName=mRAM-Free
Text="%1"
Percentual=1
X=89r
Y=0r

[RAM-Bar]
Meter=Bar
MeterStyle=styleBar
MeasureName=mRAM-Free
X=-90r
Y=15r
W=100

[RAM-%-Label]
Meter=String
MeterStyle=style-%
X=92r
Y=-12r

;---------------------------------------------------------------------
; POWER
;---------------------------------------------------------------------
[mPower]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent

[Power-1-Round]
Meter=RoundLine
MeasureName=mPower
MeterStyle=style-RoundBar
X=160
Y=160

[Power-2-Round]
Meter=RoundLine
MeasureName=mPower
MeterStyle=style-RoundBar
LineLength=28
LineStart=26
LineColor=128,255,0
X=r
Y=r

[mAc]
Measure=Plugin
Plugin=PowerPlugin
PowerState=ACLINE
IfAboveValue=0
IfAboveAction=[!SetOption AcImage ImageTint 255,255,255,255]
IfBelowValue=1
IfBelowAction=[!SetOption AcImage ImageTint 0,0,0,0]

[AcImage]
Meter=Image
ImageName=#@#AC.png
ImageTint=0,0,0,255
X=-11r
Y=-20r
W=20
H=20

[mBattery]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent

[Battery-Value]
Meter=String
MeasureName=mBattery
MeterStyle=style-AllText
StringAlign=Center
FontSize=12
FontColor=0,255,255
Text=%1 %
X=11r
Y=20r

;---------------------------------------------------------------------
; IP + UP + DOWN 
;---------------------------------------------------------------------
[mIP]
Measure=Plugin
Plugin=WebParser.dll
Url=http://checkip.dyndns.org
UpdateRate=14400
RegExp="(?siU)Address: (.*)</body>"
StringIndex=1
Substitute="":"N/A"

[IP-Label]
Meter=String
MeterStyle=style-AllText
Text="IP address"
X=12
Y=200

[IP-Value]
Meter=String
MeasureName=mIP
MeterStyle=style-AllText
StringAlign=Right
Text="%1"
X=184r
Y=0r

;--------------------------------------- UPLOAD
[mUpload]
Measure=NetOut
NetOutSpeed=#maxUpload#
Substitute=".00":""

[Upload-Label]
Meter=String
MeterStyle=style-AllText
Text="U:"
X=12
Y=235

[Upload-Value]
Meter=String
MeterStyle=style-AllText
StringAlign=Right
MeasureName=mUpload
NumOfDecimals=2
AutoScale=1
X=90r
Y=0r

[Upload-Bar]
Meter=Bar
MeterStyle=styleBar
AutoScale=1
X=-90r
Y=15r
W=90

;--------------------------------------- DOWNLOAD
[mDownload]
Measure=NetIn
MaxValue=#maxDownload#
Substitute=".00":""

[Download-Label]
Meter=String
MeterStyle=style-AllText
Text="D:"
X=r
Y=5r

[Download-Value]
Meter=String
MeterStyle=style-AllText
StringAlign=Right
MeasureName=mDownload
NumOfDecimals=2
AutoScale=1
X=90r
Y=0r

[Download-Bar]
Meter=Bar
MeterStyle=styleBar
AutoScale=1
X=-90r
Y=15r
W=90

;---------------------------------------------------------------------
; SHUTDOWN
;---------------------------------------------------------------------
[Background-ShutW]
Meter=Image
MeterStyle=styleBar
MouseOverAction=[!HideMeterGroup Date] [!UpdateMeterGroup Date] [!ShowMeterGroup Shut] [!UpdateMeterGroup ShowL] [!Redraw]
MouseLeaveAction=[!ShowMeterGroup Date] [!UpdateMeterGroup Date] [!HideMeterGroup Shut] [!UpdateMeterGroup Shut] [!Redraw]
X=12
Y=293
H=40

[Background-ShutB]
Meter=Image
MeterStyle=styleBar
SolidColor=0,0,0,120
X=1r
Y=1r
W=183
H=38

[Background-ShutR]
Hidden=1
Group=Shut
Meter=Image
MeterStyle=styleBar
SolidColor=255,0,0,100
X=2r
Y=2r
W=179
H=34

[Launcher1-Shutdown]
Meter=Image
ImageName=#@#Launchers\Shutdown.ico
LeftMouseUpAction=C:\Windows\System32\shutdown.exe -s -t 00 -f
ToolTipText="Shutdown"
Hidden=1
Group=Shut
X=6r
Y=6r
W=24
H=24

[Launcher2-Restart]
Meter=Image
ImageName=#@#Launchers\Restart.ico
LeftMouseUpAction=C:\Windows\System32\shutdown.exe -r -t 0
ToolTipText="Restart"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

[Launcher3-Sleep]
Meter=Image
ImageName=#@#Launchers\Sleep.ico
LeftMouseUpAction=C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState
ToolTipText="Sleep"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

[Launcher4-Lock]
Meter=Image
ImageName=#@#Launchers\Lock.ico
LeftMouseUpAction=C:\Windows\System32\rundll32.exe user32.dll, LockWorkStation
ToolTipText="Lock"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

;---------------------------------------------------------------------
; TIME + DATE
;---------------------------------------------------------------------
[mSecond]
Measure=Time
Format=%S
; See here for other formats - http://docs.rainmeter.net/manual/measures/time
MinValue=0
MaxValue=60

[Second-1-Round]
Meter=RoundLine
MeasureName=mSecond
MeterStyle=style-RoundBar
X=160
Y=255

[Second-2-Round]
Meter=RoundLine
MeasureName=mSecond
MeterStyle=style-RoundBar
LineLength=28
LineStart=26
LineColor=128,255,0,255
X=r
Y=r

;--------------------------------------- TIME
[mTime]
Measure=Time
Format=%#I:%M

[Time]
Meter=String
MeasureName=mTime
MeterStyle=style-AllText
StringAlign=Center
FontSize=12
FontColor=0,255,255
Text="%1"
X=-1r
Y=-9r

;--------------------------------------- DATE
[mDate]
Measure=Time
Format=%a  -  %#d %b

[Date]
Meter=String
MeasureName=mDate
MeterStyle=style-AllText
StringAlign=Center
FontFace=Corbel
FontSize=21
FontColor=255,255,0
Group=Date
Text="%1"
X=105
Y=295

;---------------------------------------------------------------------
; RECYCLE BIN
;---------------------------------------------------------------------
[Bin]
Meter=Image
ImageName=#@#Launchers\Bin Empty (orange)
LeftMouseUpAction=!Execute [!PluginBang "mBin-Items OpenBin"]
RightMouseUpAction=!Execute [!PluginBang "mBin-Items EmptyBin"]
ToolTipText="L-click = Open#CRLF#R-click = Empty"
; The #CRLF# variable creates a new line.
X=25
Y=340
W=34
H=34

[mBin-Items]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=2
Substitute=".0":" items" , "0 items":"Empty"

[mBin-Size]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=2
Substitute=".0":""

[Bin-Items]
Meter=String
MeasureName=mBin-Items
MeasureName2=mBin-Size
MeterStyle=style-AllText
StringAlign=Right
Text="%1#CRLF#%2B"
AutoScale=1
X=160r
Y=0r

;---------------------------------------------------------------------
; FOOBAR
;---------------------------------------------------------------------
[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=CAD
PlayerType=Title
DisableLeadingZero=1

;------------------------------------------------------------ PROGRESS
[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Position
RegExpSubstitute=1
Substitute="^0+:00":""
;Substitute="00:00":"0"

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Duration
RegExpSubstitute=1
Substitute="^(.*)$":" / \1","0+:00":"Stopped"," / Stopped":"Stopped"
;Substitute="00:00":"Stopped"

[SongTime]
Meter=String
MeterStyle=style-AllText
FontColor=0,255,255
MeasureName=mPosition
MeasureName2=mDuration
Text="%1%2"
X=12
Y=380

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

[ProgressBar1]
Meter=Bar
MeasureName=mProgress
MeterStyle=styleBar
BarColor=235,170,0,0
SolidColor=50,50,50,70
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=15r
H=4

[ProgressBar2]
Meter=Bar
MeasureName=mProgress
MeterStyle=styleBar
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=1r
H=2

[Progress]
Meter=String
MeasureName=mProgress
MeterStyle=style-AllText
StringAlign=Right
FontColor=0,255,255
Text="%1 %"
X=185r
Y=-16r

;----------------------------------------------------------- TRACK INFO
[mMedia1]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Artist

[mLua1]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia1
Position=Left

[Artist1]
Meter=String
MeasureName=mLua1
MeterStyle=style-AllText
StringAlign=Center
FontColor=0,255,255
X=104
Y=405
H=20

;===================
[mMedia2]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Title

[mLua2]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=21
MeasureName=mMedia2
Position=Left

[Track2]
Meter=String
MeasureName=mLua2
MeterStyle=style-AllText
StringAlign=Center
FontColor=128,255,0
FontSize=13
X=r
Y=20r
H=22

;===================
[mMedia3]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Album

[mLua3]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia3
Position=Left

[Album3]
Meter=String
MeasureName=mLua3
MeterStyle=style-AllText
StringAlign=Center
FontColor=0,255,255
X=r
Y=24r
H=18

;----------------------------------------------------------- COVER
[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Cover
Substitute="":"#@#Player\Default.png"

[BackgroundCoverW]
Meter=Image
MeterStyle=styleBar
MouseOverAction=[!HideMeterGroup Cover] [!UpdateMeterGroup Cover] [!ShowMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
MouseLeaveAction=[!ShowMeterGroup Cover] [!UpdateMeterGroup Cover] [!HideMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
X=39
Y=470
W=131
H=131

[BackgroundCoverB]
Meter=Image
MeterStyle=styleBar
SolidColor=0,0,0,150
X=1r
Y=1r
W=129
H=129

[Cover]
Meter=Image
MeasureName=mCover
SolidColor=255,255,255
Hidden=0
Group=Cover
X=2r
Y=2r
W=125
H=125

;--------------------------------------------------------- OPEN - CLOSE
[OpenPlayer]
Meter=Button
ButtonImage=#@#Player\Open.png
ToolTipText="Open Foobar"
LeftMouseUpAction=\MyApps\PortableApps\foobar2000\foobar2000.exe
Group=Player
Hidden=1
X=3r
Y=28r

[ClosePlayer]
Meter=Button
ButtonImage=#@#Player\Close.png
ToolTipText="Close player"
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"]
Group=Player
Hidden=1
X=103r
Y=r

;-------------------------------------------------------------- VOLUME
[mVolume]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=VOLUME

[Volume]
Meter=Image
ImageName=#@#Player\Volume.png
Group=Player
Hidden=1
X=-72r
Y=1r

[VolumeText]
Meter=String
MeasureName=mVolume
MeterStyle=style-AllText
StringAlign=Center
Text="%1 %"
Group=Player
Hidden=1
X=27r
Y=-2r

[VolumeUp]
Meter=Button
ButtonImage=#@#Player\VolumeUp.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume +25"]
Group=Player
Hidden=1
X=18r
Y=-1r

[VolumeDown]
Meter=Button
ButtonImage=#@#Player\VolumeDown.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume -25"]
Group=Player
Hidden=1
X=0r
Y=10r

;------------------------------------------------------------ CONTROLS
[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"#@#Player\Play.png","1":"#@#Player\Pause.png","2":"#@#Player\Play.png"

[Previous]
Meter=Button
ButtonImage=#@#Player\Previous.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Previous"]
Group=Player
Hidden=1
X=45
Y=555

[Play]
Meter=Button
ButtonImage=[mStateButton]
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1
Group=Player
Hidden=1
X=34r
Y=1r

[Next]
Meter=Button
ButtonImage=#@#Player\Next.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Next"]
Group=Player
Hidden=1
X=34r
Y=r

[Stop]
Meter=Button
ButtonImage=#@#Player\Stop.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Stop"]
Group=Player
Hidden=1
X=35r
Y=-1r
Bear in mind this is still far from finished.

Oh, and I used the smallest illustro skin as the background, renamed it Bg-illustro and put it in the Resources folder.

Thanks

EDIT:
One other thing, I have tried renaming all occurrences of the MeasureName [mC:Total] but it had no effect. The error just changed to suit whatever name I applied.
- MuLab -
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Removable Drives

Post by jsmorley »

First and foremost, this is causing multiple errors:

[mF:Total]
Measure=FreeDiskSpace
Drive=F:
Total=1
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""
IfCondition=mF:Total = 0

You don't want to use a colon in a [MeasureName], as it will confuse formulas. The ":" character is the "else" operator in a conditional formula, and that is causing the error with IfCondition.

Change All your measure names to just use a-z, A-Z, 0-9 and nothing else. No spaces, no punctuation or special characters.

From the manual:
There are only a few rules about using the INI format:

All section names in a skin must be unique.
All option names within a section must be unique.
Section and option names should include alphanumeric characters only (no spaces or punctuation).
Option values may be contained by quotes ("). If so, Rainmeter will ignore the containing quotes.
Option values must be kept on a single line.
One you fix all those, then lets see where we stand.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Removable Drives

Post by sl23 »

Ok I did think that could be the issue but I've had no other errors so thought it ok. I also did change the : for a - and still got the error.

But tomorrow I'll remove all symbols in the SectionNames and see where it gets me, thanks for the help :D
- MuLab -
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Removable Drives

Post by jsmorley »

Using a "-" in a measure name is just as bad as ":". It's fine as long as you never use that measure name in the context of a formula of any kind. However, why try to remember that, just use letters and numbers in section names.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Removable Drives

Post by sl23 »

Hooray! All errors gone! Thanks that solved the problem! :D

I also found out what caused the other errors for internet. WebParser was the same as above but MeasureName errors for Upload/Dl was caused by an omission. Though the errors have gone, The bar doesn't work as it should, but I'll look into that. I know it's something to do with specifying your max available speed or something like that. But what do you do if that changes depending where you connect to?

For example, at home I only tether my laptop to my phone for browsing and some app updates. But when I take my laptop out to a friends I use their wifi. Is there a way to adjust for this automatically, perhaps depending on connection? Actually I should look into that so I know more what I'm talking about before getting help!

I'll concentrate on getting the drives sorted first. Which is actually pretty much done. But I still need to know how I get the rest of the items in my skin to adjust automatically with the drives, which are at the top of the skin. - NOTE - think I've got it...

One thing though, is there a way to stop the drives showing or rather flashing on a skin refresh? Once I add more drives, the whole skin will extend to show all drives for a fraction of a second when refreshed. I tried using the Hidden=1 option but it doesn't work.

Thanks
- MuLab -
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Removable Drives

Post by sl23 »

I figured out how to get the rest of the skin to adjust. Now, I've made an adjustment and put the TrackInfo below the Cover. I attempted to use the code for hiding the drives with the TrackInfo. It works but I can't get it quite right.

I tried adding Group=Track to all three Meters (Artist, Track Title, Album) but this causes it to go up over the Cover. So, I then removed Group=Track from Title and Album and added 60r to the IfFalse= code you supplied, which got it in the right place.

However, now when I hover over the CoverArt when the Player is Stopped/Closed it causes the skin to 'grow' a little vertically, I can't understand why that would happen???

Here's all the code for the Player (Foobar) and you need to hover over the CoverArt to see what I mean:

Code: Select all

;---------------------------------------------------------------------
; FOOBAR
;---------------------------------------------------------------------
[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=CAD
PlayerType=Title
DisableLeadingZero=1

;------------------------------------------------------------ PROGRESS
[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Position
RegExpSubstitute=1
Substitute="^0+:00":""

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Duration
RegExpSubstitute=1
Substitute="^(.*)$":" / \1","0+:00":"Stopped"," / Stopped":"Stopped"

[SongTime]
Meter=String
MeterStyle=sAllText
FontColor=0,255,255
MeasureName=mPosition
MeasureName2=mDuration
Text="%1%2"
Y=50r

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

[ProgressBar1]
Meter=Bar
MeasureName=mProgress
MeterStyle=sBar
BarColor=235,170,0,0
SolidColor=50,50,50,70
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=15r
H=4

[ProgressBar2]
Meter=Bar
MeasureName=mProgress
MeterStyle=sBar
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=1r
H=2

[Progress]
Meter=String
MeasureName=mProgress
MeterStyle=sAllText
StringAlign=Right
FontColor=0,255,255
Text="%1 %"
X=185r
Y=-16r

;----------------------------------------------------------- COVER
[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Cover
Substitute="":"#@#Player\Default.png"

[BgCoverW]
Meter=Image
MeterStyle=sBar
MouseOverAction=[!HideMeterGroup Cover] [!UpdateMeterGroup Cover] [!ShowMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
MouseLeaveAction=[!ShowMeterGroup Cover] [!UpdateMeterGroup Cover] [!HideMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
X=39
Y=35r
W=131
H=131

[BgCoverB]
Meter=Image
MeterStyle=sBar
SolidColor=0,0,0,150
X=1r
Y=1r
W=129
H=129

[Cover]
Meter=Image
MeasureName=mCover
SolidColor=255,255,255
Hidden=0
Group=Cover
X=2r
Y=2r
W=125
H=125

;--------------------------------------------------------- OPEN - CLOSE
[OpenPlayer]
Meter=Button
ButtonImage=#@#Player\Open.png
ToolTipText="Open Foobar"
LeftMouseUpAction=\MyApps\PortableApps\foobar2000\foobar2000.exe
Group=Player
Hidden=1
X=3r
Y=28r

[ClosePlayer]
Meter=Button
ButtonImage=#@#Player\Close.png
ToolTipText="Close player"
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"]
Group=Player
Hidden=1
X=103r
Y=r

;-------------------------------------------------------------- VOLUME
[mVol]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Volume

[Vol]
Meter=Image
ImageName=#@#Player\Volume.png
Group=Player
Hidden=1
X=-72r
Y=1r

[VolText]
Meter=String
MeasureName=mVol
MeterStyle=sAllText
StringAlign=Center
Text="%1 %"
Group=Player
Hidden=1
X=27r
Y=-2r

[VolUp]
Meter=Button
ButtonImage=#@#Player\VolumeUp.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume +25"]
Group=Player
Hidden=1
X=18r
Y=-1r

[VolDown]
Meter=Button
ButtonImage=#@#Player\VolumeDown.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume -25"]
Group=Player
Hidden=1
X=0r
Y=10r

;------------------------------------------------------------ CONTROLS
[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=State
Substitute="0":"#@#Player\Play.png","1":"#@#Player\Pause.png","2":"#@#Player\Play.png"
IfCondition=mStateButton = 0
IfTrueAction=[!SetOptionGroup "Track" Y "0R"] [!HideMeterGroup "Track"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOptionGroup "Track" Y "60r"] [!ShowMeterGroup "Track"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[Previous]
Meter=Button
ButtonImage=#@#Player\Previous.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Previous"]
Group=Player
Hidden=1
X=45
Y=45r

[Play]
Meter=Button
ButtonImage=[mStateButton]
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1
Group=Player
Hidden=1
X=34r
Y=1r

[Next]
Meter=Button
ButtonImage=#@#Player\Next.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Next"]
Group=Player
Hidden=1
X=34r
Y=r

[Stop]
Meter=Button
ButtonImage=#@#Player\Stop.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Stop"]
Group=Player
Hidden=1
X=35r
Y=-1r

;----------------------------------------------------------- TRACK INFO
[mMedia1]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Artist

[mLua1]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia1
Position=Left

[Artist1]
Meter=String
MeasureName=mLua1
MeterStyle=sAllText
StringAlign=Center
FontColor=0,255,255
Group=Track
X=104
Y=60r
H=20

;===================
[mMedia2]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Title

[mLua2]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=21
MeasureName=mMedia2
Position=Left

[Track2]
Meter=String
MeasureName=mLua2
MeterStyle=sAllText
StringAlign=Center
FontColor=128,255,0
FontSize=13
X=r
Y=20r
H=22

;===================
[mMedia3]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Album

[mLua3]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia3
Position=Left

[Album3]
Meter=String
MeasureName=mLua3
MeterStyle=sAllText
StringAlign=Center
FontColor=0,255,255
X=r
Y=24r
H=18
And here's the complete skin after all the changes in case it's something else or you need to see it in context:

Code: Select all

; TO DO:
; 1. ProgressBar - ToolTipText=SongTime
; 2. RecycleBin - ToolTipText - add items and size


[Rainmeter]
Author=sl23
Update=1000
Background=#@#Bg-illustro.png
;Background=#@#Bg-Soita-V.png
BackgroundMode=3
BackgroundMargins=0,34,0,20
;BackgroundMargins=left,top,right,bottom
DynamicWindowSize=1
MouseOverAction=[!CommandMeasure mLua1 Pause=1] [!CommandMeasure mLua2 Pause=1] [!CommandMeasure mLua3 Pause=1] [!Redraw]
MouseLeaveAction=[!CommandMeasure mLua1 Pause,Timer=0,0] [!CommandMeasure mLua2 Pause,Timer=0,0] [!CommandMeasure mLua3 Pause,Timer=0,0] [!Redraw]
AccurateText=1

[Metadata]
Author=sl23
Name= SideBar
Description=A complete system skin using illustro as a sidebar

;[SideBar]
;WindowX=(#ScreenAreaX# + (#ScreenAreaWidth# - 210))
;WindowY=(#ScreenAreaY# + 10)

;---------------------------------------------------------------------
; STYLES
;---------------------------------------------------------------------
[sAllText]
FontFace=Trebuchet MS
FontSize=10
FontColor=255,255,255
AntiAlias=1
ClipString=2
X=12
Y=2R

[sDriveLabel]
Percentual=1

[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]

[sDriveValue]
StringAlign=Right
FontColor=255,255,0
NumOfDecimals=1
AutoScale=1
Text="%1B"
X=196
Y=0r

[s%]
FontFace=Trebuchet MS
FontSize=8
Text="%"
FontColor=255,255,255
AntiAlias=1
ClipString=2

[sBar]
BarColor=235,170,0,255
BarOrientation=Horizontal
SolidColor=255,255,255,50
X=12
Y=15r
W=185
H=1

[sRoundBar]
LineLength=30
LineStart=24
LineColor=128,255,0,70
StartAngle=-1.570796325
RotationAngle=6.2831853
Antialias=1
Solid=1

;---------------------------------------------------------------------
; TITLE
;---------------------------------------------------------------------
[Title]
Meter=String
MeterStyle=sAllText | sDriveLabel
StringAlign=Center
StringStyle=Bold
FontFace=Corbel
FontColor=255,255,0
FontSize=14
Text="- SYSTEM -"
LeftMouseUpAction=!Execute ["taskmgr.exe"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "255,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
ToolTipText="Task Manager"
X=110
Y=8

[RefreshSkin]
Meter=Image
ImageName=#@#Refresh.png
LeftMouseUpAction=!Refresh "Soita+System\SideBar"
ToolTipText="Refresh"
X=10
Y=r
W=25
H=25

;---------------------------------------------------------------------
; DISK - C:/
;---------------------------------------------------------------------
[mCLabel]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mCFree]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mCTotal]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
Total=1
UpdateDivider=2
Substitute=".0":""
IfCondition=mCTotal = 0
IfTrueAction=[!HideMeterGroup "Disk-C"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!ShowMeterGroup "Disk-C"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[CLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mCFree
MeasureName2=mCTotal
MeasureName3=mCLabel
Text="C:/ %1 %"
LeftMouseUpAction=!Execute ["C:\"]
ToolTipText="Open ~ #CRLF#C:/ %3#CRLF#%2B"
Group=Disk-C
Y=40

[CValue]
Meter=String
MeterStyle=sAllText | sDriveValue
MeasureName=mCFree
FontColor=0,255,255
Text="%1B"
Group=Disk-C

[mCUsed]
Measure=FreeDiskSpace
Drive=C:
IgnoreRemovable=0
Group=Disk-C
UpdateDivider=2
InvertMeasure=1

[C:Bar]
Meter=Bar
MeterStyle=sBar
MeasureName=mCUsed
Group=Disk1

;---------------------------------------------------------------------
; DISK - D:/
;---------------------------------------------------------------------
[mDLabel]
Measure=FreeDiskSpace
Drive=D:
UpdateDivider=2
Label=1

[mDFree]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mDTotal]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
Total=1
UpdateDivider=2
Substitute=".0":""
IfCondition=mDTotal = 0
IfTrueAction=[!SetOptionGroup "Disk-D" Y "0R"] [!HideMeterGroup "Disk-D"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-D" Y ""] [!ShowMeterGroup "Disk-D"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[DLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mDFree
MeasureName2=mDTotal
MeasureName3=mDLabel
Text="D:/ %1 %"
LeftMouseUpAction=!Execute ["D:\"]
ToolTipText="Open ~ #CRLF#D:/ %3#CRLF#%2B"
Group=Disk-D

[DFree]
Meter=String
MeterStyle=sAllText | sDriveValue
MeasureName=mDFree
FontColor=0,255,255
Text="%1B"
Group=Disk-D

[mDUsed]
Measure=FreeDiskSpace
Drive=D:
IgnoreRemovable=0
Group=Disk-D
UpdateDivider=2
InvertMeasure=1

[DBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mDUsed
Group=Disk-D

;---------------------------------------------------------------------
; DISK - E:/
;---------------------------------------------------------------------
[mELabel]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mEFree]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mETotal]
Measure=FreeDiskSpace
Drive=E:
Total=1
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""
IfCondition=mETotal = 0
IfTrueAction=[!SetOptionGroup "Disk-E" Y "0R"] [!HideMeterGroup "Disk-E"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-E" Y ""] [!ShowMeterGroup "Disk-E"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[ELabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mEFree
MeasureName2=mETotal
MeasureName3=mELabel
Text="E:/ %1 %"
LeftMouseUpAction=!Execute ["E:\"]
ToolTipText="Open ~ #CRLF#E:/ %3#CRLF#%2B"
Group=Disk-E
Hidden=1

[EValue]
Meter=String
MeterStyle=sAllText | sDriveValue
MeasureName=mEFree
FontColor=0,255,255
Text="%1B"
Group=Disk-E
Hidden=1

[mEUsed]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
Group=Disk-E
UpdateDivider=2
InvertMeasure=1

[EBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mEUsed
Group=Disk-E
Hidden=1

;---------------------------------------------------------------------
; DISK - F:/
;---------------------------------------------------------------------
[mFLabel]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
UpdateDivider=2
Label=1

[mFFree]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""

[mFTotal]
Measure=FreeDiskSpace
Drive=F:
Total=1
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":""
IfCondition=mFTotal = 0
IfTrueAction=[!SetOptionGroup "Disk-F" Y "0R"] [!HideMeterGroup "Disk-F"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-F" Y ""] [!ShowMeterGroup "Disk-F"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[FLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mFFree
MeasureName2=mFTotal
MeasureName3=mFLabel
Text="F:/ %1 %"
LeftMouseUpAction=!Execute ["F:\"]
ToolTipText="Open ~ #CRLF#F:/ %3#CRLF#%2B"
Group=Disk-F

[FValue]
Meter=String
MeterStyle=sAllText | sDriveValue
MeasureName=mFFree
FontColor=0,255,255
Text="%1B"
Group=Disk-F

[mFUsed]
Measure=FreeDiskSpace
Drive=F:
Group=Disk-F
UpdateDivider=2
InvertMeasure=1
; 1 Returns inverted value of FreeDiskSpace (i.e. used disk space)

[FBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mFUsed
Group=Disk-F

;---------------------------------------------------------------------
; CPU
;---------------------------------------------------------------------
[mCPU]
Measure=CPU
Processor=0

[CPULabel]
Meter=String
MeterStyle=sAllText
Text="CPU"
Y=25r

[CPUValue]
Meter=String
MeterStyle=sAllText
StringAlign=Right
MeasureName=mCPU
Text="%1"
X=89r
Y=0r

[CPUBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mCPU
X=-90r
Y=15r
W=100

[CPU%Label]
Meter=String
MeterStyle=s%
X=92r
Y=-12r

;---------------------------------------------------------------------
; RAM
;---------------------------------------------------------------------
[mRAMTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=5

[mRAMFree]
Measure=PhysicalMemory
UpdateDivider=5

[RAMLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mRAMTotal
Text="RAM"
ToolTipText="Total RAM ~ #CRLF# %1B"
AutoScale=1
Substitute=".0":""
X=-91r
Y=17r

[RAMValue]
Meter=String
MeterStyle=sAllText
StringAlign=Right
MeasureName=mRAMFree
Text="%1"
Percentual=1
X=89r
Y=0r

[RAMBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mRAMFree
X=-90r
Y=15r
W=100

[RAM%Label]
Meter=String
MeterStyle=s%
X=92r
Y=-12r

;---------------------------------------------------------------------
; POWER
;---------------------------------------------------------------------
[mPower]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent

[Power1Round]
Meter=RoundLine
MeasureName=mPower
MeterStyle=sRoundBar
X=55r
Y=-4r

[Power2Round]
Meter=RoundLine
MeasureName=mPower
MeterStyle=sRoundBar
LineLength=28
LineStart=26
LineColor=128,255,0
X=r
Y=r

[mAc]
Measure=Plugin
Plugin=PowerPlugin
PowerState=ACLINE
IfAboveValue=0
IfAboveAction=[!SetOption AcImage ImageTint 255,255,255,255]
IfBelowValue=1
IfBelowAction=[!SetOption AcImage ImageTint 0,0,0,0]

[AcImage]
Meter=Image
ImageName=#@#AC.png
ImageTint=0,0,0,255
X=-11r
Y=-20r
W=20
H=20

[mBattery]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent

[BatteryValue]
Meter=String
MeasureName=mBattery
MeterStyle=sAllText
StringAlign=Center
FontSize=12
FontColor=0,255,255
Text=%1 %
X=10r
Y=20r

;---------------------------------------------------------------------
; RECYCLE BIN
;---------------------------------------------------------------------
[Bin]
Meter=Image
ImageName=#@#Launchers\Bin Empty (orange)
LeftMouseUpAction=!Execute [!PluginBang "mBinItems OpenBin"]
RightMouseUpAction=!Execute [!PluginBang "mBinItems EmptyBin"]
ToolTipText="L-click = Open#CRLF#R-click = Empty"
X=-150r
Y=35r
W=34
H=34

[mBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=2
Substitute=".0":" items" , "0 items":"Empty"

[mBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=2
Substitute=".0":""

[BinInfo]
Meter=String
MeasureName=mBinItems
MeasureName2=mBinSize
MeterStyle=sAllText | sHighlight
Text="%1#CRLF#%2B"
LeftMouseUpAction=!Execute [!PluginBang "mBinItems OpenBin"]
RightMouseUpAction=!Execute [!PluginBang "mBinItems EmptyBin"]
ToolTipText="L-click = Open#CRLF#R-click = Empty"
AutoScale=1
X=40r
Y=0r

;---------------------------------------------------------------------
; IP + UP + DOWN 
;---------------------------------------------------------------------
[mIP]
Measure=Plugin
Plugin=WebParser.dll
Url=http://checkip.dyndns.org
UpdateRate=14400
RegExp="(?siU)Address: (.*)</body>"
StringIndex=1
Substitute="":"N/A"

;--------------------------------------- UPLOAD
[mUpload]
Measure=NetOut
NetOutSpeed=#maxUpload#
Substitute=".00":""

[UploadLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mIP
Text="U:"
ToolTipText="IP: %1"
Y=40r

[UploadValue]
Meter=String
MeterStyle=sAllText
StringAlign=Right
MeasureName=mUpload
NumOfDecimals=2
AutoScale=1
X=100r
Y=0r

[UploadBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mUpload
AutoScale=1
X=-100r
Y=15r
W=100

;--------------------------------------- DOWNLOAD
[mDownload]
Measure=NetIn
MaxValue=#maxDownload#
Substitute=".00":""

[DownloadLabel]
Meter=String
MeterStyle=sAllText | sDriveLabel | sHighlight
MeasureName=mIP
Text="D:"
ToolTipText="IP: %1"
X=r
Y=5r

[DownloadValue]
Meter=String
MeterStyle=sAllText
StringAlign=Right
MeasureName=mDownload
NumOfDecimals=2
AutoScale=1
X=100r
Y=0r

[DownloadBar]
Meter=Bar
MeterStyle=sBar
MeasureName=mDownload
AutoScale=1
X=-100r
Y=15r
W=100

;---------------------------------------------------------------------
; SHUTDOWN
;---------------------------------------------------------------------
[BgShutW]
Meter=Image
MeterStyle=sBar
MouseOverAction=[!HideMeterGroup Date] [!UpdateMeterGroup Date] [!ShowMeterGroup Shut] [!UpdateMeterGroup ShowL] [!Redraw]
MouseLeaveAction=[!ShowMeterGroup Date] [!UpdateMeterGroup Date] [!HideMeterGroup Shut] [!UpdateMeterGroup Shut] [!Redraw]
Y=25r
H=40

[BgShutB]
Meter=Image
MeterStyle=sBar
SolidColor=0,0,0,120
X=1r
Y=1r
W=183
H=38

[BgShutR]
Hidden=1
Group=Shut
Meter=Image
MeterStyle=sBar
SolidColor=255,0,0,100
X=2r
Y=2r
W=179
H=34

[Shutdown]
Meter=Image
ImageName=#@#Launchers\Shutdown.ico
LeftMouseUpAction=C:\Windows\System32\shutdown.exe -s -t 00 -f
ToolTipText="Shutdown"
Hidden=1
Group=Shut
X=6r
Y=6r
W=24
H=24

[Restart]
Meter=Image
ImageName=#@#Launchers\Restart.ico
LeftMouseUpAction=C:\Windows\System32\shutdown.exe -r -t 0
ToolTipText="Restart"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

[Sleep]
Meter=Image
ImageName=#@#Launchers\Sleep.ico
LeftMouseUpAction=C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState
ToolTipText="Sleep"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

[Lock]
Meter=Image
ImageName=#@#Launchers\Lock.ico
LeftMouseUpAction=C:\Windows\System32\rundll32.exe user32.dll, LockWorkStation
ToolTipText="Lock"
Hidden=1
Group=Shut
X=48r
Y=0r
W=24
H=24

;---------------------------------------------------------------------
; TIME + DATE
;---------------------------------------------------------------------
[mSecond]
Measure=Time
Format=%S
; See here for other formats - http://docs.rainmeter.net/manual/measures/time
MinValue=0
MaxValue=60

[Second1Round]
Meter=RoundLine
MeasureName=mSecond
MeterStyle=sRoundBar
X=-7r
Y=-50r

[Second2Round]
Meter=RoundLine
MeasureName=mSecond
MeterStyle=sRoundBar
LineLength=28
LineStart=26
LineColor=128,255,0,255
X=r
Y=r

;--------------------------------------- TIME
[mTime]
Measure=Time
Format=%#I:%M

[Time]
Meter=String
MeasureName=mTime
MeterStyle=sAllText
StringAlign=Center
FontSize=12
FontColor=0,255,255
Text="%1"
X=-1r
Y=-9r

;--------------------------------------- DATE
[mDate]
Measure=Time
Format=%a  -  %#d %b

[Date]
Meter=String
MeasureName=mDate
MeterStyle=sAllText
StringAlign=Center
FontFace=Corbel
FontSize=21
FontColor=255,255,0
Group=Date
Text="%1"
X=-53r
Y=52r

;---------------------------------------------------------------------
; FOOBAR
;---------------------------------------------------------------------
[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=CAD
PlayerType=Title
DisableLeadingZero=1

;------------------------------------------------------------ PROGRESS
[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Position
RegExpSubstitute=1
Substitute="^0+:00":""

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Duration
RegExpSubstitute=1
Substitute="^(.*)$":" / \1","0+:00":"Stopped"," / Stopped":"Stopped"

[SongTime]
Meter=String
MeterStyle=sAllText
FontColor=0,255,255
MeasureName=mPosition
MeasureName2=mDuration
Text="%1%2"
Y=50r

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

[ProgressBar1]
Meter=Bar
MeasureName=mProgress
MeterStyle=sBar
BarColor=235,170,0,0
SolidColor=50,50,50,70
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=15r
H=4

[ProgressBar2]
Meter=Bar
MeasureName=mProgress
MeterStyle=sBar
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"]
X=r
Y=1r
H=2

[Progress]
Meter=String
MeasureName=mProgress
MeterStyle=sAllText
StringAlign=Right
FontColor=0,255,255
Text="%1 %"
X=185r
Y=-16r

;----------------------------------------------------------- COVER
[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Cover
Substitute="":"#@#Player\Default.png"

[BgCoverW]
Meter=Image
MeterStyle=sBar
MouseOverAction=[!HideMeterGroup Cover] [!UpdateMeterGroup Cover] [!ShowMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
MouseLeaveAction=[!ShowMeterGroup Cover] [!UpdateMeterGroup Cover] [!HideMeterGroup Player] [!UpdateMeterGroup Player] [!Redraw]
X=39
Y=35r
W=131
H=131

[BgCoverB]
Meter=Image
MeterStyle=sBar
SolidColor=0,0,0,150
X=1r
Y=1r
W=129
H=129

[Cover]
Meter=Image
MeasureName=mCover
SolidColor=255,255,255
Hidden=0
Group=Cover
X=2r
Y=2r
W=125
H=125

;--------------------------------------------------------- OPEN - CLOSE
[OpenPlayer]
Meter=Button
ButtonImage=#@#Player\Open.png
ToolTipText="Open Foobar"
LeftMouseUpAction=\MyApps\PortableApps\foobar2000\foobar2000.exe
Group=Player
Hidden=1
X=3r
Y=28r

[ClosePlayer]
Meter=Button
ButtonImage=#@#Player\Close.png
ToolTipText="Close player"
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"]
Group=Player
Hidden=1
X=103r
Y=r

;-------------------------------------------------------------- VOLUME
[mVol]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Volume

[Vol]
Meter=Image
ImageName=#@#Player\Volume.png
Group=Player
Hidden=1
X=-72r
Y=1r

[VolText]
Meter=String
MeasureName=mVol
MeterStyle=sAllText
StringAlign=Center
Text="%1 %"
Group=Player
Hidden=1
X=27r
Y=-2r

[VolUp]
Meter=Button
ButtonImage=#@#Player\VolumeUp.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume +25"]
Group=Player
Hidden=1
X=18r
Y=-1r

[VolDown]
Meter=Button
ButtonImage=#@#Player\VolumeDown.png
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume -25"]
Group=Player
Hidden=1
X=0r
Y=10r

;------------------------------------------------------------ CONTROLS
[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=State
Substitute="0":"#@#Player\Play.png","1":"#@#Player\Pause.png","2":"#@#Player\Play.png"
IfCondition=mStateButton = 0
IfTrueAction=[!SetOptionGroup "Track" Y "0R"] [!HideMeterGroup "Track"] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOptionGroup "Track" Y "60r"] [!ShowMeterGroup "Track"] [!UpdateMeter *] [!Redraw]
DynamicVariables=1

[Previous]
Meter=Button
ButtonImage=#@#Player\Previous.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Previous"]
Group=Player
Hidden=1
X=45
Y=45r

[Play]
Meter=Button
ButtonImage=[mStateButton]
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1
Group=Player
Hidden=1
X=34r
Y=1r

[Next]
Meter=Button
ButtonImage=#@#Player\Next.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Next"]
Group=Player
Hidden=1
X=34r
Y=r

[Stop]
Meter=Button
ButtonImage=#@#Player\Stop.png
LeftMouseUpAction=[!CommandMeasure mPlayer "Stop"]
Group=Player
Hidden=1
X=35r
Y=-1r

;----------------------------------------------------------- TRACK INFO
[mMedia1]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Artist

[mLua1]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia1
Position=Left

[Artist1]
Meter=String
MeasureName=mLua1
MeterStyle=sAllText
StringAlign=Center
FontColor=0,255,255
Group=Track
X=104
Y=60r
H=20

;===================
[mMedia2]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Title

[mLua2]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=21
MeasureName=mMedia2
Position=Left

[Track2]
Meter=String
MeasureName=mLua2
MeterStyle=sAllText
StringAlign=Center
FontColor=128,255,0
FontSize=13
X=r
Y=20r
H=22

;===================
[mMedia3]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Album

[mLua3]
Measure=Script
ScriptFile=#@#Marquee.lua
Width=28
MeasureName=mMedia3
Position=Left

[Album3]
Meter=String
MeasureName=mLua3
MeterStyle=sAllText
StringAlign=Center
FontColor=0,255,255
X=r
Y=24r
H=18
Thanks
- MuLab -
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Removable Drives

Post by fonpaolo »

Since here you're talking about disks I have a little question, maybe a little OT, but related...

Let's talk about DVD/CD drives, I'm updating my skins and I'm thinking to add a label to display if it's used or not (if there's a DVD/CD inside the drive) and the ability to open the main folder with a mouse click, using:

Code: Select all

[MeasureDVD1Disk]
Measure=Freediskspace
Drive=#disk6#
Label=1
Substitute="":"-1"
OnChangeAction=[!UpdateMeasure MeasureDVDOn]
UpdateDivider=5

[MeasureDVDOn]
Measure=Calc
Formula=[MeasureDVD1Disk]
IfEqualValue=-1
IfEqualAction=[!HideMeterGroup GroupDVD1][!UpdateMeterGroup GroupDVD1][!Redraw]
IfAboveValue=0
IfAboveAction=[!ShowMeterGroup GroupDVD1][!UpdateMeterGroup GroupDVD1][!Redraw]
DynamicVariables=1
UpdateDivider=-1

[MeterDVD1DriveButton]
Meter=Button
ButtonImage=#@#\Images\Time1\HDD_1.png
x=198
y=307
ButtonCommand=["#disk6#"]
UpdateDivider=-1
Group=GroupDVD1

[MeterDVD1Drive]
Meter=String
MeterStyle=TextStyleDiskDrive
Text=#disk6#"
x=6r
y=3r
UpdateDivider=-1
Group=GroupDVD1
I know that with DVD/CD only two measures are possible, when I insert a DVD/CD, Rainmeter is blocked for a few seconds (waiting the reading of the disk, I suppose), when I remove the disk, instead, it's immediate.
Suggestions?
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Removable Drives

Post by sl23 »

now when I hover over the CoverArt when the Player is Stopped/Closed it causes the skin to 'grow' a little vertically, I can't understand why that would happen???
I think I get it, the Track Info is still reserved there but due to the way my skin works, Hovering causes it to be relative to another Meter, causing the invisible Track Info to move down and therefore expand the skin!

:thumbup:
- MuLab -
Wiebenor
Posts: 4
Joined: June 14th, 2018, 5:11 am

Re: Removable Drives

Post by Wiebenor »

So... i have a question about removable drives, specifically SD cards... when I load a rainmeter skin, my drives show up, as in i2 bar, and the successor i3 bar, with the notable difference being the D drive being full when it has 21GB free... i have found 1 guy who made a skin out of the many I have tried, just 1, who was able to get my SD card to show up and give the proper amount free, out of the possibly hundreds I've used over the years... why does no one have proper SD card support in their skins??? Oh, and by the way, search Google for "rackmount 1.7" that's the skin that I have confirmed proper SD card support in... i just wish I was better than a script kiddie, cause the configuration files for rackmount make i2 and i3 bar, look like child's play :( :( :(... thats my 1 complaint about rainmeter, the absurd spottiness of SD card compatible skins...