Hi everyone,
I changed the example of the WebNowPlaying https://github.com/keifufu/WebNowPlaying-Rainmeter Meter to my taste, since w11 doesn't give native support of "what's running now".
Now I have this kind of problem, where I want to have a dynamic size and a minimum width set for the display, which does not really work.
What I want: The Meter of the Artist should have the same width as the song, but if the song is shorter than the artist, it just cuts off. If the width of the title is under 200 it should set the width to 200, what it does, but if it's over 200px it's not dynamic anymore. Below a few Screenshots and the code so far.
I also have no idea where to put the condition and if it's even somewhat right. Guess there are better options but couldn't find anything, so any help or tips would be appreciated.
First three images show the behaviour without the ifcondition, as you see the top width adjusts perfekt to the title.
This one shows it with the condition, content gets cut if the title is too long because of clipstring, without it it would just fly out of the box.
I changed the example of the WebNowPlaying https://github.com/keifufu/WebNowPlaying-Rainmeter Meter to my taste, since w11 doesn't give native support of "what's running now".
Now I have this kind of problem, where I want to have a dynamic size and a minimum width set for the display, which does not really work.
What I want: The Meter of the Artist should have the same width as the song, but if the song is shorter than the artist, it just cuts off. If the width of the title is under 200 it should set the width to 200, what it does, but if it's over 200px it's not dynamic anymore. Below a few Screenshots and the code so far.
I also have no idea where to put the condition and if it's even somewhat right. Guess there are better options but couldn't find anything, so any help or tips would be appreciated.
First three images show the behaviour without the ifcondition, as you see the top width adjusts perfekt to the title.
This one shows it with the condition, content gets cut if the title is too long because of clipstring, without it it would just fly out of the box.
Code:
[Rainmeter]Update=100BackgroundMode=3BackgroundMargins=3,3,3,3DynamicWindowSize=1AccurateText=1[Metadata]Name=WebNowPlaying Music Plugin ExamplesAuthor=keifufu, tjhrulzInformation="Various basic examples of how to use the WebNowPlaying"Version=1.0.0License=MIT; This is a simple skin showing how to use WebNowPlaying; It's usually a drop-in replacement for NowPlaying, but has a bunch of new features.; Check the github's README for documentation.[playerstyle]SolidColor=0,0,0,190FontFace=Segoe UI Variable SmallFontColor=225,225,225FontSize=9AntiAlias=1StringAlign=Rightx=400[Variables]Background=255,255,255Color=255,255,255; This measures the player, e.g. 'YouTube', 'Spotify', etc.[MeasurePlayer]Measure=PluginPlugin=WebNowPlayingPlayerType=PlayerUpdateDivider = 5Substitute="":"N/A"[MeasureState]Measure=NowPlayingPlayerName=WINAMPPlayerType=StatusIfCondition=(#CURRENTSECTION#=0)IfTrueAction=[!HideFade]IfFalseAction=[!ShowFade][MeasureProcess]Measure=PluginPlugin=ProcessProcessName=Spotify.exe; Value will be '1' when the process is running, '-1' when it is not runningIfCondition=(MeasureProcess=-1)IfTrueAction=[!HideFade]IfFalseAction=[!ShowFade][MeasureTitle]Measure=PluginPlugin=WebNowPlayingPlayerType=TitleUpdateDivider = 5Substitute="":"Currently no track playing"[MeasrureWidth]Measure=CalcIfCondition=([MeterSongInfo:W] < 200)IfTrueAction=[!SetOption MeterSongInfo W 200][MeasureArtist]Measure=PluginPlugin=WebNowPlayingPlayerType=ArtistUpdateDivider = 5Substitute="":""[MeterArtistInfo]Meter=Stringy=Rh=20FontColor=#Color#,255Group=DynamicColorsMeasureName=MeasureArtistMeterStyle=playerstylePadding=-10,3,10,0W=[MeterSongInfo:W]DynamicVariables=1ClipString=1[MeterSongInfo]Meter=Stringy=Rh=20FontColor=#Color#,255Group=DynamicColorsMeasureName=MeasureTitleMeterStyle=playerstylePadding=10,0,10,3DynamicVariables=1ClipString=1
Statistics: Posted by devlink — Today, 12:43 am — Replies 0 — Views 26