It is currently May 3rd, 2024, 10:48 am

[SOLVED] Some Problems with a Streamskin

Get help with creating, editing & fixing problems with skins
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

[SOLVED] Some Problems with a Streamskin

Post by BlueWriter »

Hi there :) I've some problems with a skin: the basic is a part of the 'Animus White-Room' -Skinpack. Then I've added some points from the 'Radio Now' -Skin - thats what I've done:

Code: Select all

[Rainmeter]
Update=50
Author=jpgeolina
BackgroundMode=1
LocalFont="#ROOTCONFIGPATH#Font\AC2Aaux Prolight.ttf"

[Variables]
Button Location=#CURRENTPATH#Toolkit.png
@include=#SKINSPATH#\Animus-WhiteRoom\Resources\Variable Groups.txt
BoxLength=180
PathToVLC="D:\Programme\32Bit\VLC Player\VLC\vlc.exe"
PathToRainRadio="#CURRENTPATH#\Musiclovers.exe"
PathToStations="#CURRENTPATH#Stations\"

Station1Link=Technolovers.pls
Station1Title="Technolovers"
Station2Link=Hardlovers.pls
Station2Title="Hardlovers"
Station3Link=Dublovers.pls
Station3Title="Dublovers"
Station4Link=Houselovers.pls
Station4Title="Houselovers"
________________________

;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

______________
;Technolovers
______________
[Technolovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=25
W=#BoxLength#
H=20
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]["#PathToRainRadio#" "#PathToVLC#" "#PathToStations##Station1Link#"][!SetOptionGroup Stations 

StringStyle Normal][!SetOption MeterStation1 StringStyle BoldItalic]
MouseOverAction=!Execute [!SetOption TechnoloversText StringStyle BOLD] [!SetOption TechnoloversText FontColor #cBlack#] [!SetOption Technolovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption TechnoloversText StringStyle NORMAL] [!SetOption TechnoloversText FontColor #cWhite#] [!SetOption Technolovers SolidColor 

#cBlack#]
Hidden=1
Group=Edit

[TechnoloversText]
Meter=STRING
x=80
y=24
W=#BoxLength#
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
FontColor=#cWhite#
Text="Technolovers"
Antialias=1
Hidden=1
Group=Edit

______________
;Hardlovers
______________
[Hardlovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=50
W=#BoxLength#
H=20
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]["#PathToRainRadio#" "#PathToVLC#" "#PathToStations##Station2Link#"][!SetOptionGroup Stations 

StringStyle Normal][!SetOption MeterStation2 StringStyle BoldItalic]
MouseOverAction=!Execute [!SetOption HardloversText StringStyle BOLD] [!SetOption HardloversText FontColor #cBlack#] [!SetOption Hardlovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption HardloversText StringStyle NORMAL] [!SetOption HardloversText FontColor #cWhite#] [!SetOption Hardlovers SolidColor #cBlack#]
Hidden=1
Group=Edit

[HardloversText]
Meter=STRING
x=5r
y=49
W=#BoxLength#
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
FontColor=#cWhite#
Text="Hardlovers"
Antialias=1
Hidden=1
Group=Edit

______________
;Dublovers
______________
[Dublovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=75
W=#BoxLength#
H=20
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]["#PathToRainRadio#" "#PathToVLC#" "#PathToStations##Station3Link#"][!SetOptionGroup Stations 

StringStyle Normal][!SetOption MeterStation3 StringStyle BoldItalic]
MouseOverAction=!Execute [!SetOption DubloversText StringStyle BOLD] [!SetOption DubloversText FontColor #cBlack#] [!SetOption Dublovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption DubloversText StringStyle NORMAL] [!SetOption DubloversText FontColor #cWhite#] [!SetOption Dublovers SolidColor #cBlack#]
Hidden=1
Group=Edit

[DubloversText]
Meter=STRING
x=5r
y=74
W=#BoxLength#
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
FontColor=#cWhite#
Text="Dublovers"
Antialias=1
Hidden=1
Group=Edit

______________
;Houselovers
______________
[Houselovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=100
W=#BoxLength#
H=20
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]["#PathToRainRadio#" "#PathToVLC#" "#PathToStations##Station4Link#"][!SetOptionGroup Stations 

StringStyle Normal][!SetOption MeterStation4 StringStyle BoldItalic]
MouseOverAction=!Execute [!SetOption HouseloversText StringStyle BOLD] [!SetOption HouseloversText FontColor #cBlack#] [!SetOption Houselovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption HouseloversText StringStyle NORMAL] [!SetOption HouseloversText FontColor #cWhite#] [!SetOption Houselovers SolidColor #cBlack#]
Hidden=1
Group=Edit

[HouseloversText]
Meter=STRING
x=5r
y=99
W=#BoxLength#
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
FontColor=#cWhite#
Text="Houselovers"
Antialias=1
Hidden=1
Group=Edit

______________
;Button
______________
[Meter]
Meter=BUTTON
X=242
Y=3
ButtonImage=#Button Location#
LeftMouseUpAction=!Execute [!ToggleMeterGroup Edit]
And it looks: http://www.imagebanana.com/view/5ev59uoq/_20120717_165931.jpg

Now my problem:
When I click on a stream, then starts VLC and plays it. Now I want that if I click on the stream again, VLC stops playing the stream...
With the help of Kaelri in the IRC Rainmeter Chat I rewrite the script (I show only the edited Technoloverspart):

Code: Select all

______________
;Technolovers
______________
[StartTechnolovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=25
W=#BoxLength#
H=20
LeftMouseUpAction=!Execute ["#PathToRainRadio#" "#PathToVLC#" "#PathToStations##Station1Link#"] [!SetOptionGroup Stations StringStyle Normal] [!SetOption MeterStation1 StringStyle BoldItalic] [!ShowMeter "StopTechnolovers"] [!HideMeter "StartTechnolovers"] [!SetOption StartTechnolovers Group ""] [!SetOption StopTechnolovers Group "Edit"]
MouseOverAction=!Execute [!SetOption TechnoloversText StringStyle BOLD] [!SetOption TechnoloversText FontColor #cBlack#] [!SetOption Technolovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption TechnoloversText StringStyle NORMAL] [!SetOption TechnoloversText FontColor #cWhite#] [!SetOption Technolovers SolidColor #cBlack#]
Hidden=1
Group=Edit


[StopTechnolovers]
Meter=IMAGE
SolidColor=#cBlack#
x=75
y=25
W=#BoxLength#
H=20
LeftMouseUpAction=!CommandMeasure ["MainMeasure" "ClosePlayer"] [!ShowMeter "StartTechnolovers"] [!HideMeter "StopTechnolovers"] [!SetOption StopTechnolovers Group ""] [!SetOption StartTechnolovers Group "Edit"]
MouseOverAction=!Execute [!SetOption TechnoloversText StringStyle BOLD] [!SetOption TechnoloversText FontColor #cBlack#] [!SetOption Technolovers SolidColor #cWhite#]
MouseLeaveAction=!Execute [!SetOption TechnoloversText StringStyle NORMAL] [!SetOption TechnoloversText FontColor #cWhite#] [!SetOption Technolovers SolidColor #cBlack#]
Hidden=1




[TechnoloversText]
Meter=STRING
x=80
y=24
W=#BoxLength#
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
FontColor=#cWhite#
Text="Technolovers"
Antialias=1
Hidden=1
Group=Edit

But this solution doesn't works! Has anyone a better solution?

PS: When a stream is enabled (that means, that I can hear it), the font should be cursive so I can see what is enabled. Thus, when I've enabled the Technoloversstream and i click on the e.g. Hardloversstream the font on the Technoloversstream should be normal and the font from the Hardloversstream should be cursive!
Check out my first skinpackage on deviantART!
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

Re: Some Problems with a Streamskin

Post by BlueWriter »

Here is a downloadlink for a .zip archive of my hole skinpack: http://www14.zippyshare.com/v/71298302/file.html
Check out my first skinpackage on deviantART!
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Some Problems with a Streamskin

Post by Kaelri »

Ok, now that I've seen the whole skin, I was able to fix the problems. There was no single cause, it was just an extremely poorly-written skin. Lots of mistakes by the original author: typos, missing measures, and bad methodology. (The other skins in the suite are probably similarly troubled, but I don't have time to rewrite the whole package.)

As for your request: to make the commands easier, I created styles for each state that one of the buttons can be in (stopped/started, and mouseover/mouseout). I also combined the background and text into one meter to make it simpler.

Code: Select all

[Rainmeter]
Author=jpgeolina
LocalFont="#ROOTCONFIGPATH#Font\AC2Aaux Prolight.ttf"

[Variables]
@include=#SKINSPATH#\Animus-WhiteRoom\Resources\Variable Groups.txt
PathToVLC="D:\Programme\32Bit\VLC Player\VLC\vlc.exe"

; Measures

[mPlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=CAD
PlayerType=STATUS

; Styles

[StyleStation]
x=75
y=25r
W=180
H=20
StringCase=UPPER
FontSize=13
FontFace=#LocalFontFace#
Antialias=1
Group=Stations
Hidden=1

[StyleStopped]
StringStyle=Normal
FontColor=#cWhite#
SolidColor=#cBlack#
MouseOverAction=[!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStoppedMouseover"][!Update]

[StyleStoppedMouseover]
StringStyle=Bold
FontColor=#cBlack#
SolidColor=#cWhite#
MouseLeaveAction=[!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStopped"][!Update]
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"][!SetOptionGroup Stations MeterStyle "StyleStation | StyleStopped"]["#CURRENTPATH#\Musiclovers.exe" "#PathToVLC#" "#CURRENTPATH#Stations\#CURRENTSECTION#.pls"][!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStartedMouseover"][!Update]

[StyleStarted]
StringStyle=BoldItalic
FontColor=#cWhite#
SolidColor=#cBlack#
MouseOverAction=[!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStartedMouseover"][!Update]

[StyleStartedMouseover]
StringStyle=BoldItalic
FontColor=#cBlack#
SolidColor=#cWhite#
MouseLeaveAction=[!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStarted"][!Update]
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"][!SetOptionGroup Stations MeterStyle "StyleStation | StyleStopped"][!SetOption #CURRENTSECTION# MeterStyle "StyleStation | StyleStoppedMouseover"][!Update]

; Stations

[Technolovers]
Meter=STRING
MeterStyle=StyleStation | StyleStopped
Text=" Technolovers"

[Hardlovers]
Meter=STRING
MeterStyle=StyleStation | StyleStopped
Text=" Hardlovers"

[Dublovers]
Meter=STRING
MeterStyle=StyleStation | StyleStopped
Text=" Dublovers"

[Houselovers]
Meter=STRING
MeterStyle=StyleStation | StyleStopped
Text=" Houselovers"

[PulsTrance]
Meter=STRING
MeterStyle=StyleStation | StyleStopped
Text=" Puls Trance"

; Button

[Meter]
Meter=BUTTON
X=242
Y=3
ButtonImage=#CURRENTPATH#Toolkit.png
LeftMouseUpAction=[!ToggleMeterGroup Stations]
One thing you need to know is that the name of the .PLS file is now determined by the name of the button. For example, [Technolovers] will launch VLC with "Technolovers.pls", [PulsTrance] will be "PulsTrance.pls", etc.
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

Re: Some Problems with a Streamskin

Post by BlueWriter »

many many thanks that you help me!!! :))))
but now, if i click on the skin, nothing happens :/
Check out my first skinpackage on deviantART!
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Some Problems with a Streamskin

Post by Kaelri »

What exactly does not happen? Do the buttons not change appearance properly, or does the music not play? I didn't change anything about how the skin talks to VLC, so however that worked (or didn't work) in the original skin should still be the same.
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

Re: Some Problems with a Streamskin

Post by BlueWriter »

Normally, if I click on the skin, it should show the various radio stations. But if I click on the skin now, nothing happens!
Check out my first skinpackage on deviantART!
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Some Problems with a Streamskin

Post by Kaelri »

I can't explain that. I used the skin files you gave me, and the only changes I made were the ones in my post above. Everything is working fine.

Are you using the most recent version of Rainmeter? Make you're you're using 2.3.3 - you can download a fresh copy here.
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

Re: Some Problems with a Streamskin

Post by BlueWriter »

Yes this was the problem - I had Rainmeter 2.1.0! Okay now it works! There is only one thing, which doesn't works: the SecondClickAction: you remeber, if I click on e.g. 'Technolovers' twice, the stream should stop! Until now only the font goes normally, but the stream continues...
Check out my first skinpackage on deviantART!
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Some Problems with a Streamskin

Post by Kaelri »

Did you install the libcad plugin that we gave you in the chat?
BlueWriter
Posts: 6
Joined: July 17th, 2012, 4:46 pm

Re: Some Problems with a Streamskin

Post by BlueWriter »

Yes this was the second problem! First, I tried version 1.0.2 of the libcad plugin, which doesn't works. But version 1.0.1 works! Many many thanks to you, that you have taked your time for me :)
Check out my first skinpackage on deviantART!