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