It what it currently looks like
It is currently May 14th, 2024, 12:51 am
iTunes Monitor problem
-
- Posts: 5
- Joined: August 22nd, 2012, 6:05 am
iTunes Monitor problem
Would anyone mind downloading this skin and telling me whats wrong with it(or fix it)? The right side of it gets cut off for some odd reason, i cant find anything in the coding that would make it that way. I attached it to the thread, but if it doesnt work, there's another link here:http://www.mediafire.com/?lh5zjby24m5ez9q. Thanks in advance
It what it currently looks like
It what it currently looks like
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: iTunes Monitor problem
Just a quick check: Did you set DynamicWindowSize=1 in the [Rainmeter] section? If not, that might help.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 5
- Joined: August 22nd, 2012, 6:05 am
Re: iTunes Monitor problem
No, i put that in there, that didnt seem to do anything. The current coding is here at http://pastebin.com/r2d8GhX4 if you need it.MerlinTheRed wrote:Just a quick check: Did you set DynamicWindowSize=1 in the [Rainmeter] section? If not, that might help.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: iTunes Monitor problem
Sorry, I don't have time right now to check your skin. Just a few hints for your information though. There are a couple of things that are deprecated in the newest Rainmeter version (and some of them have been for quite some time):
- !Execute isn't needed any more. You can just delete it
- You don't need to prefix your bangs with !Rainmeter any more. For example !ShowMeter instead of !RainmeterShowMeter
- !PluginBang has been renamed to !CommandMeasure
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 5
- Joined: August 22nd, 2012, 6:05 am
Re: iTunes Monitor problem
Oh cool, i'll have to spend some time updating my skins in the morning. For now, off to sleep. Thanks for the helpMerlinTheRed wrote:Sorry, I don't have time right now to check your skin. Just a few hints for your information though. There are a couple of things that are deprecated in the newest Rainmeter version (and some of them have been for quite some time):These aren't causing your problems, but they might save you some time typing.
- !Execute isn't needed any more. You can just delete it
- You don't need to prefix your bangs with !Rainmeter any more. For example !ShowMeter instead of !RainmeterShowMeter
- !PluginBang has been renamed to !CommandMeasure
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: iTunes Monitor problem
Couple of other things I noticed:
Always comment any line that is intended as a comment. You have a lot of lines in there that don't do anything and are solely for decoration. Put a ";" in front of them or they might confuse Rainmeter.
The font you use isn't included in the skin. You can include it by creating a "@Resources" folder in the root directory of your skin and putting the font file into a "Fonts" folder inside of "@Resources". See here for more info: http://rainmeter.net/cms/Skins-Resources_beta
SolidColor on a measure doesn't do anything (if the measure is not a plugin that by chance defines a "SolidColor" option, which iTunes does not):
The Manual states that you need to add empty quotes if there are no arguments to a !CommandMeasure (or !PluginBang). I don't know if this is really true, but I added them anyway just to be safe.
You define a variable "font", but then you don't use it in all your string measures that use this font. I fixed that for you.
One meter uses a MeterStyle that doesn't exist.
And finally, the root of your problem:
Here is a cleaned-up version of your code:
Oh, and if you want the progress bar to move as fast in the RoundLine as it moves in the straight bar, you might want to split the progress up into 84/16 instead of 80/20 like right now (only if you keep the current sizes and radius of the RoundLine).
Always comment any line that is intended as a comment. You have a lot of lines in there that don't do anything and are solely for decoration. Put a ";" in front of them or they might confuse Rainmeter.
The font you use isn't included in the skin. You can include it by creating a "@Resources" folder in the root directory of your skin and putting the font file into a "Fonts" folder inside of "@Resources". See here for more info: http://rainmeter.net/cms/Skins-Resources_beta
SolidColor on a measure doesn't do anything (if the measure is not a plugin that by chance defines a "SolidColor" option, which iTunes does not):
Code: Select all
[mPrev]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=PreviousTrack
SolidColor=160,32,240,255
You define a variable "font", but then you don't use it in all your string measures that use this font. I fixed that for you.
One meter uses a MeterStyle that doesn't exist.
And finally, the root of your problem:
This means, either add an "invisible" image that extends the skin enough so nothing gets cut off, or define a width and height of those RoundLine Meters.Rainmeter Manual Page on RoundLine wrote: If the width and height are not defined, the center point is at the X and Y position of the meter and any part of the meter that intersects with the edges of the skin window will be cut off. If width and height are specified, the center point will be in the middle of the bounding box and the skin window will include the meter.
Here is a cleaned-up version of your code:
Code: Select all
[Rainmeter]
;------------------------------------------
[Variables]
color=255,255,255, 180
color2=0, 0, 0, 200
graph.line=255,255,255, 180
graph.line2=0, 0, 0, 180
font=Arial
;------------------------type in "b" for black or "w" for white icons
BlackOrWhiteButtons=w
;------------------------------------------
;Measure
[MeasureTrack]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackName
[MeasureArtist]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtist
[MeasureAlbum]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackAlbum
[MeasureTime]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPosition
[MeasureTMinute]
Measure=Calc
Formula=(MeasureTime - (MeasureTime % 60)) /60
[MeasureTSecond]
Measure=Calc
Formula=MeasureTime % 60
[MeasureTZero]
Measure=Calc
Formula=(MeasureTime % 60) < 10 ? 0 : 1
Substitute="1":""
[MeasureArt]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtwork
[mProgress]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPositionPercent
MaxValue=100
[mPrev]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=PreviousTrack
[mPlay]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Play
[mPause]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Pause
[mStop]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Stop
[mNext]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=NextTrack
[MeasureMore]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=SoundVolumeUp
[MeasureLess]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=SoundVolumeDown
[MeasureVolume]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetSoundVolume
;------------------------------------------
;Progress Measures
[MeasureProgress]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPositionPercent
MaxValue=100
[MeasureProgressD]
Measure=Calc
Formula=(MeasureProgress)/100
[MeasureProgressP1]
Measure=Calc
Formula=MeasureProgressD/0.80
[MeasureProgressP2]
Measure=Calc
Formula=(MeasureProgressD-0.80)/0.20
[MeasureAlways]
Measure=Calc
Formula=1
;------------------------------------------
;Meters
;====================================================================================================VOLUME
[iTunesVolume]
MeasureName=MeasureVolume
Meter=BAR
X=128
Y=33
H=2
W=75
BarColor=255,255,255,180
BarOrientation=HORIZONTAL
[Less]
Meter=Image
ImageName=minus2.png
X=-15r
y=-5r
H=12
W=12
LeftMouseDownAction= [!CommandMeasure "MeasureLess" ""][!Redraw]
[More]
Meter=Image
ImageName=plus2.png
X=93r
y=r
H=12
W=12
LeftMouseDownAction= [!CommandMeasure "MeasureMore" ""][!Redraw]
;=============================================================================================================
[Prev]
Meter=IMAGE
ImageName=Prev#BlackOrWhiteButtons#.png
X=10
Y=24
W=18
H=18
AntiAlias=1
MouseOverAction= [!ShowMeter PrevH][!Redraw]
MouseLeaveAction= [!HideMeter PrevH][!Redraw]
LeftMouseDownAction= [!CommandMeasure "mPrev" ""]
[Play]
Meter=IMAGE
ImageName=Play#BlackOrWhiteButtons#.png
X=22r
Y=r
W=19
H=19
AntiAlias=1
MouseOverAction= [!ShowMeter PlayH][!Redraw]
MouseLeaveAction= [!HideMeter PlayH][!Redraw]
LeftMouseDownAction= [!CommandMeasure "mPlay" ""]
[Pause]
Meter=IMAGE
ImageName=Pause#BlackOrWhiteButtons#.png
X=14r
Y=r
W=18
H=18
AntiAlias=1
MouseOverAction= [!ShowMeter PauseH][!Redraw]
MouseLeaveAction= [!HideMeter PauseH][!Redraw]
LeftMouseDownAction= [!CommandMeasure "mPause" ""]
[Stop]
Meter=IMAGE
ImageName=Stop#BlackOrWhiteButtons#.png
X=14r
Y=r
W=18
H=18
AntiAlias=1
MouseOverAction= [!ShowMeter StopH][!Redraw]
MouseLeaveAction= [!HideMeter StopH][!Redraw]
LeftMouseDownAction= [!CommandMeasure "mStop" ""]
[Next]
Meter=IMAGE
ImageName=Next#BlackOrWhiteButtons#.png
X=22r
Y=r
W=18
H=18
AntiAlias=1
MouseOverAction= [!ShowMeter NextH][!Redraw]
MouseLeaveAction= [!HideMeter NextH][!Redraw]
LeftMouseDownAction= [!CommandMeasure "mNext" ""]
;============================================================================================================TIME
[Artist]
Meter=STRING
MeasureName=MeasureArtist
Text=%1
X=265
Y=0
W=335
H=25
ClipString=1
FontColor=0,225,225,225
FontFace=#font#
FontSize=12
StringAlign=right
StringStyle=BOLD
AntiAlias=1
[Time]
Meter=STRING
MeasureName=MeasureTMinute
MeasureName2=MeasureTZero
MeasureName3=MeasureTSecond
x=237
y=21
FontColor=0,225,225,225
FontFace=#font#
FontSize=11
StringStyle=BOLD
AntiAlias=1
Text=%1.%2%3
;===================================================================================================MUSIC MONITOR
[Track]
Meter=STRING
MeasureName=MeasureTrack
x=275
y=53
W=279
H=22
ClipString=1
FontColor=0,225,225,225
FontFace=#font#
FontSize=10
StringAlign=Right
StringStyle=Normal
AntiAlias=1
;-----------------------------------------------------------------------------------------------------
;Progress Rings
[ProgressBarBG]
Meter=IMAGE
SolidColor=255,215,0,255
X=0
Y=49
W=271
H=2
[ProgressBar]
MeasureName=MeasureProgressP1
Meter=BAR
X=r
Y=r
W=271
H=2
BarColor=0,225,225,225
BarOrientation=horizontal
[MeterProgressRingBG2]
Meter=ROUNDLINE
MeasureName=MeasureAlways
X=254
Y=17
W=34
H=34
StartAngle=1.57075
RotationAngle=-3.2
LineLength=17
LineStart=15
LineColor=255,215,0,255
AntiAlias=1
Solid=1
[MeterProgressRing2]
MeasureName=MeasureProgressP2
Meter=ROUNDLINE
X=r
Y=r
W=34
H=34
StartAngle=1.57075
RotationAngle=-3.2
LineLength=17
LineStart=15
AntiAlias=1
Solid=1
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 5
- Joined: August 22nd, 2012, 6:05 am
Re: iTunes Monitor problem
Thanks for everything, i'll make sure to read those later. Do you know why instead of blue covering up the gold, the gold itself disappears?
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: iTunes Monitor problem
I think there is a LineColor missing from the last meter.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 5
- Joined: August 22nd, 2012, 6:05 am
Re: iTunes Monitor problem
Ah, i accidently put bar color instead of line color. Thanks