Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 473

Help: Rainmeter Skins • Issues with Button and Progress Bar Interaction in Expandable Music Player

$
0
0
I am working on an expandable and retractable music player that I can hide when not in use. The expansion and retraction of the music player work fine, but the issue arises when I try to interact with the buttons and the progress bar. Despite reviewing my code, I can't seem to pinpoint the cause of the problem.

Could someone please help me resolve this issue? :?

Here's my code:

Code:

[Rainmeter]Update=100AccurateText=1DynamicWindowSize=1SkinWidth=401SkinHeight=42[Variables]@includeVars=#@#Variables.incOffset=-359State=1U=[!UpdateMeasure MeasureSlider][!UpdateMeter *][!Redraw][MeasureArtist]Measure=PluginPlugin=WebNowPlayingPlayerName=#Player#PlayerType=Artist[MeasureDuration]Measure=PluginPlugin=WebNowPlayingPlayerName=#Player#PlayerType=Duration[MeasurePosition]Measure=PluginPlugin=WebNowPlayingPlayerName=#Player#PlayerType=Position[MeasureProgress]Measure=PluginPlugin=WebNowPlayingPlayerName=[MeasureArtist]PlayerType=PROGRESS[MeasurePlayerStatus]Measure=PluginPlugin=WebNowPlayingPlayerName=[MeasureArtist]PlayerType=STATUSUpdateDivider=#UpdateDivider#[MeasureState]Measure=PluginPlugin=WebNowPlaying.dllPlayerName=[MeasureArtist]PlayerType=STATESubstitute="0":"Play.png","1":"Pause.png","2":"Play.png"UpdateDivider=#UpdateDivider#[MeasureStateInfo]Measure=PluginPlugin=WebNowPlaying.dllPlayerName=[MeasureArtist]PlayerType=STATEIfEqualValue=0IfEqualAction=[!HideMeterGroup "Info"][!Redraw]IfAboveValue=0IfAboveAction=[!ShowMeterGroup "Info"][!Redraw]UpdateDivider=#UpdateDivider#[MeasureSlider]Measure=PluginPlugin=ActionTimerActionList1=Repeat SlideRight, 2, 45SlideRight=[!SetVariable State "2"][!SetVariable OffSet "(Clamp(#OffSet#+9,-359,0))"]#U#ActionList2=Repeat SlideLeft, 2, 45SlideLeft=[!SetVariable State "1"][!SetVariable OffSet "(Clamp(#OffSet#-9,-359,0))"]#U#DynamicVariables=1[Button]Meter=ImageX=0Y=0W=42H=42SolidColor=0,0,0,1DynamicVariables=1LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #State#"][ContainerBox]Meter=ShapeX=42Y=0W=359H=42SolidColor=255,255,255,255DynamicVariables=1[ProgressTrack]Container=ContainerBoxMeter=IMAGESolidColor=0,0,0,1X=(#Offset#+15)Y=8W=344H=3LeftMouseDownAction=[!CommandMeasure "MeasureArtist" "SetPosition $MouseX:%$"][!Update][!Redraw]UpdateDivider=-1DynamicVariables=1[ProgressBar]Container=ContainerBoxMeter=BARMeasureName=MeasureProgressBarColor=#Color#,(255*(#Alpha#))SolidColor=#Color#,0BarOrientation=HorizontalX=rY=8W=344H=1Group=InfoDynamicVariables=1[ProgressBarBackground]Container=ContainerBoxMeter=ShapeShape=RectangleX=(#Offset#+15)Y=8H=1W=344SolidColor=255,255,255,50StrokeWidth=0DynamicVariables=1[MeterDuration]Container=ContainerBoxMeter=StringMeasureName=MeasureDurationStringAlign=RightFontFace=Chathura RegularFontColor=255,255,255,255FontSize=15X=(#Offset#+359)Y=8Text="%1"AntiAlias=1DynamicVariables=1[MeasureMinutesRemaining]Measure=CalcFormula=Trunc((MeasurePosition)/60)RegExpSubstitute=1Substitute="^(.)$":"\1"[MeasureSecondsRemaining]Measure=CalcFormula=((MeasurePosition) % 60)RegExpSubstitute=1Substitute="^(.)$":"0\1"[MeterPosition]Container=ContainerBoxMeter=StringMeasureName=MeasureMinutesRemainingMeasureName2=MeasureSecondsRemainingStringAlign=LeftFontFace=Chathura RegularFontColor=255,255,255,255FontSize=15X=(#Offset#+15)Y=8Text="%1:%2"AntiAlias=1DynamicVariables=1[Previous]Container=ContainerBoxMeter=IMAGEImageName=#@#Images\Prev.pngImageTint=#Color#ImageAlpha=(255*(#Alpha#))AntiAlias=1H=11X=(#Offset#+151)Y=22Group=ControlsUpdateDivider=-1LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Previous"]SolidColor=0,0,0,1DynamicVariables=1[PlayPause]Container=ContainerBoxMeter=IMAGEMeasureName=MeasureStateImageName=#@#Images\%1ImageTint=#Color#ImageAlpha=(255*(#Alpha#))AntiAlias=1X=15RY=-1rGroup=ControlsUpdateDivider=#UpdateDivider#LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "PlayPause"]SolidColor=0,0,0,1DynamicVariables=1[Next]Container=ContainerBoxMeter=IMAGEImageName=#@#Images\Next.pngImageTint=#Color#ImageAlpha=(255*(#Alpha#))AntiAlias=1H=11X=15RY=1rGroup=ControlsUpdateDivider=-1LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Next"]SolidColor=0,0,0,1DynamicVariables=1

Statistics: Posted by Rhyuno — Yesterday, 12:23 pm — Replies 4 — Views 66



Viewing all articles
Browse latest Browse all 473