It is currently April 18th, 2024, 2:03 pm

Can't open playlist

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

Can't open playlist

Post by sl23 »

I'm attempting to add several links to playlists which are registered on my system to open with Foobar. However, a L-click doesn't open the playlist, any ideas what I'm doing wrong here?

Code: Select all

[Variables]
; Path to your Playlists
Playlist1="D:\Documents\Music - Faves\Aphex Twin - Faves\Aphex Twin - Faves.m3u"
Playlist2=
Playlist3=
Playlist4=
Playlist5=

[sButton2]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 128,255,0,0

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor 255,255,0,255"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw] 

LeftMouseUpAction=[!SetOptionGroup Button FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"] [##CURRENTSECTION#] [!UpdateMeter *][!Redraw]

ToolTipText=[##CURRENTSECTION#]
DynamicVariables=1
Group=Button | Playlist
Hidden=1
MouseActionCursor=0
UpdateDivider=-1
X=20r
Y=r

[Playlist1]
Meter=Shape
MeterStyle=sButton2
X=77
Y=8

[Playlist2]
Meter=Shape
MeterStyle=sButton2

[Playlist3]
Meter=Shape
MeterStyle=sButton2

[Playlist4]
Meter=Shape
MeterStyle=sButton2

[Playlist5]
Meter=Shape
MeterStyle=sButton2
Everything else works fine, just the playlist files won't open foobar, aren't loaded and don't play.

Thank you.

EDIT: No worries, solved it by using ["[##CURRENTSECTION#]"] in the LeftMouseUpAction. :D
- MuLab -
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Can't open playlist

Post by death.crafter »

sl23 wrote: September 5th, 2021, 10:31 pm EDIT: No worries, solved it by using ["[##CURRENTSECTION#]"] in the LeftMouseUpAction. :D
Do not make a habit of using [##CURRENTSECTION#].

Use [#[#CURRENTSECTION]] instead.

I know it works but still, correct syntax should be prioritized.
from the Realm of Death
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Can't open playlist

Post by Active Colors »

death.crafter wrote: September 6th, 2021, 4:27 am Do not make a habit of using [##CURRENTSECTION#].

Use [#[#CURRENTSECTION]] instead.

I know it works but still, correct syntax should be prioritized.
Technically, there is nothing "incorrect" with the [##CURRENTSECTION#]. This is just a combination of the former way of writing variables and the latter, and Rainmeter is fine with that.
Practically, one might want to stick to using just the latter format for the consistency purposes.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Can't open playlist

Post by death.crafter »

Active Colors wrote: September 6th, 2021, 6:44 am Technically, there is nothing "incorrect" with the [##CURRENTSECTION#]. This is just a combination of the former way of writing variables and the latter, and Rainmeter is fine with that.
Practically, one might want to stick to using just the latter format for the consistency purposes.
If you say so... But it just feels wrong. Horribly wrong. :uhuh:
from the Realm of Death
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Can't open playlist

Post by Active Colors »

death.crafter wrote: September 6th, 2021, 8:41 am If you say so... But it just feels wrong. Horribly wrong. :uhuh:
I understand what you mean. It just feels wrong, but it is not wrong. I would go simply with the new format since it offers the same functionality as the old one and even more when needed, and, as I mentioned, use it for consistency purposes.
Anything can feel wrong if it does not fit with your personal values.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Can't open playlist

Post by sl23 »

Thank you for the tip. I didn't know that was an older way of doing it, I just used what worked. I will change it in all my skins.

I can see why you dislike that way of doing it, it actually makes more sense when written the other way! :D
Anything can feel wrong if it does not fit with your personal values.
Agreed. The problem with the human race is that everyone mistakenly believes they alone are right, or their way is right! Wonder where that idea came from? :rofl:
- MuLab -
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Can't open playlist

Post by death.crafter »

sl23 wrote: September 6th, 2021, 11:10 am Agreed. The problem with the human race is that everyone mistakenly believes they alone are right, or their way is right! Wonder where that idea came from? :rofl:
They do not mistakenly believe... They just believe. Until ofc they are proved wrong. If they accept it or not that's another matter ;-)
And I don't accept [##CURRENTSECTION#]
Just because it looks wrong lmao.
from the Realm of Death
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Can't open playlist

Post by CodeCode »

sl23 wrote: September 6th, 2021, 11:10 am I will change it in all my skins.
Leave one in the old format.
FTP :rofl:
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Can't open playlist

Post by sl23 »

:rolmfao:
  It's all relative ya know!  
- MuLab -
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Can't open playlist

Post by sl23 »

CodeCode wrote: September 6th, 2021, 11:56 am Leave one in the old format.
FTP :rofl:
:thumbup: then we can play hunt the syntax! :sly:
- MuLab -