It is currently April 19th, 2024, 3:27 pm

Looking to be pointed in the right direction

Get help with creating, editing & fixing problems with skins
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

balala wrote: March 16th, 2019, 7:02 am I don't think this is an error related to Rainmeter. There something is going wrong with your Windows, I suppose. Especially that Rainmeter isn't running on startup. Unfortunately I can't recommend anything.
But again, the error definitely wasn1t caused by the used Rainmeter commands (shutdown.exe).
So whatever the issue was, I think it stopped. Either way, I've started working on the next part of this. Decided to code this one from the ground up, challenge myself a little. So what I want to do is make a music player. Unfortunately I've fallen at the first hurdle. The music player I use is musicbee, and after some research I enabled the "CD Art Display" in Preferences. Unfortunately that hasn't made the thing work. I also downloaded Soita, since it seems to be popular, to test against. It also doesn't function. Here's my starting code:

****Edit*****
Never mind. Turns out that after changing settings in a program, rebooting the program really helps :Whistle

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255

[MeasurePlayer]
Measure=NowPlaying
PlayerName=CAD

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Artist

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=5
Y=5
W=400
H=50
FontColor=255,255,255,255
Text="Artist: %1"
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Looking to be pointed in the right direction

Post by balala »

Ferbstorm wrote: March 19th, 2019, 3:09 pm Never mind. Turns out that after changing settings in a program, rebooting the program really helps :Whistle
So, you got it working now, right?
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

balala wrote: March 19th, 2019, 4:27 pm So, you got it working now, right?
Yeah, it's working great. It's all starting to click. I think my biggest issue now is just that I have no skill whatsoever with GIMP. Makes the process a little harder
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Looking to be pointed in the right direction

Post by balala »

Ferbstorm wrote: March 19th, 2019, 4:30 pm Yeah, it's working great. It's all starting to click. I think my biggest issue now is just that I have no skill whatsoever with GIMP. Makes the process a little harder
Unfortunately I can't help with GIMP, because I'm also not working with it and generally nor with any kind of image manipulation.
But they probably have to have a forum or something to get help.
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

balala wrote: March 19th, 2019, 4:34 pm Unfortunately I can't help with GIMP, because I'm also not working with it and generally nor with any kind of image manipulation.
But they probably have to have a forum or something to get help.
Yeah it's not something I can really get help with. I jsut need to get familiar with it. Or find a nice bunch of button images I like, which is what I'm on the hunt for right now
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

Alright, I've run into a wall. I can't figure out why my bangs on this specific chunk won't work. Any help would be much appreciated. The MouseOver and MouseLeave actions work just fine, but the Scroll actions don't. The first snippet is just the sections that I think are relevant. The second snippet is the Entire chunk of code that I'm working with, in case there's something hidden that I'm not noticing. Feel free to ignore it

Code: Select all


[MeasurePlayer]
Measure=NowPlaying
PlayerName=CAD

[MeasureVolume]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Volume

[BackGround]
Meter=Image
SolidColor=#BaseBG#
H=((#VertPadding#*2)+#BarWidthV#+#BarWidthP#+(#ButtonPadding#*3)+#ButtonSize#+#ButtonSize2#+10)
W=((#HorzPadding#*2)+#BarLength#)
Group=GroupOne
MouseOverAction=[!ShowMeterGroup Volume][!Update]
MouseLeaveAction=[!HideMeterGroup Volume][!Update]
MouseScrollUpAction=[!CommandMeasure MeasurePlayer SetVolume +5][!Update]
MouseScrollDownAction=[!CommandMeasure MeasurePlayer SetVolume -5][!Update]

[Volume]
Meter=Bar
MeasureName=MeasureVolume
BarOrientation=Horizontal
BarColor=#BarOverV#
Flip=1
Y=#VertPadding#
X=#HorzPadding#
H=#BarWidthV#
W=#BarLength#
Group=Volume
Hidden=1

Code: Select all

[Rainmeter]
Update=1000



[Variables]

;Sizing;

BarWidthV=3
BarWidthP=4
BarLength=500
FontSize=12
ButtonSize=30
ButtonSize2=30
ButtonSize3=(#ButtonSize2#-10)
ButtonPadding=5
ButtonPadding2=25
VertPadding=5
HorzPadding=5

;Color;

BaseBG=40,80,40,1
ButtonBase=40,80,40,20
ButtonBase2=10,50,10,200
ButtonBase3=40,80,40,140
StrokeColor=10,50,10,255
TextBG=40,80,40,0
BarBase=10,50,10,160
;BarBase=40,80,40,140
FontColor=140,230,200
FontWeight=550
BarOverV=10,50,10,160
BarOverP=10,50,10,160

;Spacing;

ButtonY=(#BarWidthV#+#ButtonPadding#+#VertPadding#)
ButtonY2=(#ButtonY#+#ButtonSize#+#ButtonPadding#+#BarWidthP#+10)
ButtonY3=(#ButtonY2#+((#ButtonSize2#/2)-(#ButtonSize3#/2)))
ButtonX=(#BarLength#-(#ButtonSize#+#ButtonPadding#))
ButtonX2=((#BarLength#/2)-(#ButtonSize2#/2))
BarYP=(#ButtonY#+#ButtonSize#+#ButtonPadding#)
TextY=(#ButtonY#+(#ButtonSize#/2))
TextX=(#BarLength#/2)

;Miscellaneous;

Play=1
Pause=0


;=================================================================================;

[MeasurePlayer]
Measure=NowPlaying
PlayerName=CAD

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Artist

[MeasureTitle]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Title

[MeasureAlbum]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Album

[MeasureAlbumArt]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Cover

[MeasureProgress]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Progress

[MeasurePosition]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Position

[MeasureDuration]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Duration

[MeasureVolume]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Volume

[MeasureState]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=State
IfCondition=MeasureState = 1
IfCondition2=(MeasureState = 0) || (MeasureState = 2)
IfTrueAction=[!SetVariable Play 1][!SetVariable Pause 0][!update]
IfTrueAction2=[!SetVariable Play 0][!SetVariable Pause 1][!update]

;=================================================================================;

[BackGround]
Meter=Image
SolidColor=#BaseBG#
H=((#VertPadding#*2)+#BarWidthV#+#BarWidthP#+(#ButtonPadding#*3)+#ButtonSize#+#ButtonSize2#+10)
W=((#HorzPadding#*2)+#BarLength#)
Group=GroupOne
MouseOverAction=[!ShowMeterGroup Volume][!Update]
MouseLeaveAction=[!HideMeterGroup Volume][!Update]
MouseScrollUpAction=[!CommandMeasure MeasurePlayer SetVolume +5][!Update]
MouseScrollDownAction=[!CommandMeasure MeasurePlayer SetVolume -5][!Update]

[Volume]
Meter=Bar
MeasureName=MeasureVolume
BarOrientation=Horizontal
BarColor=#BarOverV#
Flip=1
Y=#VertPadding#
X=#HorzPadding#
H=#BarWidthV#
W=#BarLength#
Group=Volume
Hidden=1

[VolumeBG]
;Meter=Image
SolidColor=#BarBase#
X=#HorzPadding#
Y=#VertPadding#
H=(#BarWidthP#/2)
W=(#BarLength#-10)
Group=Volume
Hidden=1

[TrackInfo]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureTitle
X=#TextX#
Y=#TextY#
SolidColor=#TextBG#
StringEffect=Shadow
FontEffectColor=0,0,0
FontColor=#FontColor#
FontSize=#FontSize#
FontWeight=#FontWeight#
StringAlign=CenterCenter
Group=GroupOne
Text="%1  |   %2"

[Musicbee]
Meter=Image
ImageName=#@#Images\BumbleBee.png
GreyScale=0
X=#ButtonX#
Y=#ButtonY#
H=#ButtonSize#
W=#ButtonSize#
MouseOverAction=[!SetOption Musicbee GreyScale 1][!Update]
MouseLeaveAction=[!Setoption Musicbee Greyscale 0][!Update]
LeftMouseUpAction=[!ToggleMeterGroup GroupOne][!Update]

[ProgressBar]
Meter=Bar
MeasureName=MeasureProgress
BarOrientation=Horizontal
BarColor=#BarOverP#
X=#HorzPadding#
Y=#BarYP#
H=#BarWidthP#
W=#BarLength#
Group=GroupOne

[ProgressBarBG]
Meter=Image
SolidColor=#BarBase#
X=#HorzPadding#
Y=#BarYP#
H=(#BarWidthP#/2)
W=(#BarLength#-10)
Group=GroupOne

[Play]
Meter=Shape
X=#ButtonX2#
Y=#ButtonY2#
ShapePlay=Combine Shape | Union Shape2
Shape= Path Play | Extend Modifier
Shape2=Rectangle 0,0,#ButtonSize2#,#ButtonSize2# | StrokeWidth 0 | FillColor 0,0,0,1
Play= 0,0 | LineTo 0,#ButtonSize2# | LineTo #ButtonSize2#,(#ButtonSize2#/2) | ClosePath 1
Modifier=StrokeWidth 1 | FillColor #ButtonBase# | Stroke Color #StrokeColor#
Modifier2=StrokeWidth 1 | FillColor #ButtonBase2# | Stroke Color #StrokeColor#
MouseOverAction=[!SetOption Play Shape "Path Play | Extend Modifier2"][!Update]
MouseLeaveAction=[!SetOption Play Shape "Path Play | Extend Modifier"][!Update]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer Play][!update][!Refresh]
DynamicVariables=1
Hidden=#Play#

[Pause]
Meter=Shape
X=#ButtonX2#
Y=#ButtonY2#
ShapePause=Combine Shape | Union Shape2 | Union Shape3
Shape=Rectangle 0,0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier
Shape2=Rectangle ((#ButtonSize2#/3)*2),0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier
Shape3=Rectangle 0,0,#ButtonSize2#,#ButtonSize2# | StrokeWidth 0 | FillColor 0,0,0,1
Modifier=StrokeWidth 1 | FillColor #ButtonBase# | Stroke Color #StrokeColor#
Modifier2=StrokeWidth 1 | FillColor #ButtonBase2# | Stroke Color #StrokeColor#
MouseOverAction=[!SetOption Pause Shape "Rectangle 0,0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier2"][!SetOption Pause Shape2 "Rectangle ((#ButtonSize2#/3)*2),0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier2"][!Update]
MouseLeaveAction=[!SetOption Pause Shape "Rectangle 0,0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier"][!SetOption Pause Shape2 "Rectangle ((#ButtonSize2#/3)*2),0,(#ButtonSize2#/3),#ButtonSize2# | Extend Modifier"][!Update]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer Pause][!update][!Refresh]
DynamicVariables=1
Hidden=#Pause#

[Next]
Meter=Shape
X=(#ButtonX2#+#ButtonSize2#+#ButtonPadding2#)
Y=#ButtonY3#
ShapeNext=Combine Shape | Union Shape2 | Union Shape3
Shape=Path Next | Extend Modifier
Shape2=Path Next2 | Extend Modifier
Shape3=Rectangle 0,0,(#ButtonSize3#*2),#ButtonSize3# | StrokeWidth 0 | FillColor 0,0,0,1
Next= 0,0 | LineTo 0,#ButtonSize3# | LineTo #ButtonSize3#,(#ButtonSize3#/2) | ClosePath 1
Next2= #ButtonSize3#,0 | LineTo #ButtonSize3#,#ButtonSize3# | LineTo (#ButtonSize3#*2),(#ButtonSize3#/2) | ClosePath 1
Modifier=StrokeWidth 1 | FillColor #ButtonBase# | Stroke Color #StrokeColor#
Modifier2=StrokeWidth 1 | FillColor #ButtonBase2# | Stroke Color #StrokeColor#
MouseOverAction=[!SetOption Next Shape "Path Next | Extend Modifier2"][!SetOption Next Shape2 "Path Next2 | Extend Modifier2"][!Update]
MouseLeaveAction=[!SetOption Next Shape "Path Next | Extend Modifier"][!SetOption Next Shape2 "Path Next2 | Extend Modifier"][!Update]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer Next][!update][!Refresh]

[Previous]
Meter=Shape
X=(#ButtonX2#-#ButtonPadding2#)
Y=#ButtonY3#
ShapePrev=Combine Shape | Union Shape2 | Union Shape3
Shape=Path Prev | Extend Modifier
Shape2=Path Prev2 | Extend Modifier
Shape3=Rectangle 0,0,(-(#ButtonSize3#*2)),#ButtonSize3# | StrokeWidth 0 | FillColor 0,0,0,1
Prev= 0,0 | LineTo 0,#ButtonSize3# | LineTo (-#ButtonSize3#),(#ButtonSize3#/2) | ClosePath 1
Prev2= (-#ButtonSize3#),0 | LineTo (-#ButtonSize3#),#ButtonSize3# | LineTo (-(#ButtonSize3#*2)),(#ButtonSize3#/2) | ClosePath 1
Modifier=StrokeWidth 1 | FillColor #ButtonBase# | Stroke Color #StrokeColor#
Modifier2=StrokeWidth 1 | FillColor #ButtonBase2# | Stroke Color #StrokeColor#
MouseOverAction=[!SetOption Previous Shape "Path Prev | Extend Modifier2"][!SetOption Previous Shape2 "Path Prev2 | Extend Modifier2"][!Update]
MouseLeaveAction=[!SetOption Previous Shape "Path Prev | Extend Modifier"][!SetOption Previous Shape2 "Path Prev2 | Extend Modifier"][!Update]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer Previous][!update][!Refresh]
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Looking to be pointed in the right direction

Post by jsmorley »

Code: Select all

MouseScrollUpAction=[!CommandMeasure MeasurePlayer "SetVolume +5"][!Update]
MouseScrollDownAction=[!CommandMeasure MeasurePlayer "SetVolume -5"][!Update]
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

Oh good lord, of course it's the one quotation arrangement I didn't try. Thanks man, I appreciate it
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Looking to be pointed in the right direction

Post by jsmorley »

Ferbstorm wrote: March 20th, 2019, 3:32 am Oh good lord, of course it's the one quotation arrangement I didn't try. Thanks man, I appreciate it
Sure. Bangs are in general [!BangName ThingToActOn ValueToUse ConfigNameToActOn]. The parameters are separated by spaces. If you have spaces in any of the parameters, it must be enclosed in "quotes", or Rainmeter can't parse it properly. In your example, it is going to look for a ConfigName called "+5" or "-5", which of course it won't find. I would point out that it told you this in the About / Log with an error message.

While ConfigName is almost always optional, that implies that it's ok if it's not there, but if it is there, it must be valid.

it can be said, and I have said it myself in the past, that it is just a good practice to always enclose the parameters of bangs in "quotes". While that is a reasonable approach to take, as it kinda reduces the need to think about it, it doesn't make the "why" of it clear, and runs the risk of making how and why it works the way it does just more "intimidating", and not more "understood". The thing to really remember is that parameters in bangs are separated by spaces.

This is why we harp on not using spaces in [Section Name] for instance. It's not that Rainmeter can't handle that. It's actually perfectly fine with it. It's just that we found early on that folks were not wrapping their heads around the fact that parameters in bangs are separated by spaces, and it just become easier to say "don't use spaces". It saved a lot of frustration by end-users, and kept us from the temptation to make snarky comments like I would point out that it told you this in the About / Log with an error message.
Ferbstorm
Posts: 36
Joined: March 9th, 2019, 12:50 am

Re: Looking to be pointed in the right direction

Post by Ferbstorm »

jsmorley wrote: March 20th, 2019, 3:37 am I would point out that it told you this in the About / Log with an error message.
Lol How dare you assume that I'm intelligent enough to think of looking at the error log to figure out why stuff isn't working like it's supposed to