It is currently April 26th, 2024, 5:47 pm

foobar player - album cover - strange behaviour

Get help with creating, editing & fixing problems with skins
SenorCochones
Posts: 4
Joined: October 17th, 2010, 10:43 am

foobar player - album cover - strange behaviour

Post by SenorCochones »

i have simple foobar player skin which is working fine... i wanted to get some album cover shown besides this player so i searched for a skin that can do this. i found foobar skin 2.1 by r-night-hawk-o and edited it. after some time and troubles i got this skin to work correctly and the album cover is showing up after starting the track.

but then i noticed a strange behaviour:
everytime i start a track after "stop" or launching the player the pic loads, disappears after some seconds and reloads again... this does not happen after going "prev" oder "next". in this case the pic always loads once. i cant explain why and can see the cause in the code.

here is the code:

Code: Select all

;##########################   Measures   ###########################

[MeasureCommand]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":"","[Stopped]":""

[mWAPlaying]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
ifAboveValue=0
IfAboveAction=!execute [!RainmeterShowMeter cover][!RainmeterShowMeter title][!RainmeterShowMeter album][!RainmeterShowMeter artist]
IfEqualValue=0
IfEqualAction=!execute [!RainmeterHideMeter border][!RainmeterHideMeter title][!RainmeterHideMeter album][!RainmeterHideMeter artist][!RainmeterHideMeter cover][!RainmeterShowMeter idle]

[mWACurr] 
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[mControl]
Measure=Calc
Formula= mWACurr>100?(mWACurr<1500?1:0):0
IfEqualValue=1
IfEqualAction=!RainmeterRefresh

[mRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=86400 ;that means never!
Url=http://127.0.0.1:8888
RegExp="(?siU)img src=\"(.*)\".+class=\"track\">(.*)##(.*)##(.*)</span>"
StringIndex=1
ForceReload=1
finishaction=!Execute [!RainmeterHideMeter idle][!RainmeterShowMeter border]

[mCover]
Measure=Plugin
Plugin=Plugins\WebParser.dll
download=1
Url=http://127.0.0.1:8888/[mRSS]
StringIndex=1


;##########################   Meters   ############################

[MeterBackground]
meter=image
ImageName=#CURRENTPATH#\music.png
w=160
h=160
LeftMouseDownAction=!execute ["file:\\f:\Musik"]

[Cover]
MeasureName=mCover
meter=image
X=r
Y=r
w=160
h=160
any help or hint would be very appreciated. thx in advance... :)