It's not replacing "None", but exactly contrary: it replaces the empty string returned by the player with "None". This feature works perfectly. It is done by the RegExpSusbtitute and Substitute options added to the [Title] (to make the substitution in the title), to [Artist] (to make the substitution in the artist name) and to the [Album] (obviously to make the substitution into the album title) measures.1- there is a part on the code which is supposed to substitute "None" for " Nothing Playing" but is not doing it....
Yep, there is. You need a measure returning the state of the player and have to add an IfCondition to check this state. Then you have to act accordingly.2- Is there a way to stop the song info scrolling when the player is not playing..? eclectic tech mentions in a forum visualizers are resource consuming widgets so it will be better idea to aim to measure a "process" to achieve that instead of just hiding a skin which it will remain consuming precious resources when the player is idling in pause.... which by the way is WMP in my case
as always thanks in advance for your assistance
For instance add the following measure to your code:
Code:
[State]Measure=PluginPlugin=NowPlaying.dllPlayerName=[Title]PlayerType=StateIfCondition=(#CURRENTSECTION#=1)IfTrueAction=[!UnpauseMeasure "Position"]IfFalseAction=[!PauseMeasure "Position"]
- 0 if the player is stopped.
- 1 if the player is playing.
- 2 if the player is paused.
Note a few other things:
- The NowPlaying measures, even if a while ago were plugin measures, have been converted to internal measure type. So you shouldn't use anymore the Measure=Plugin and Plugin=NowPlaying.dll option pair, but should replace them by Measure=NowPlaying. I kept your way to write the measure in the above example, especially that this approach is still working, due to backward compatibility reasons. But this syntax has been deprecated long time ago and shouldn't be used anymore.
- The NowPlaying measure should work on a parent- child syntax: this means that one measure (doesn't really matter which one) should be the parent measure and the others should be the child measures. All child measures should refere to the parent measure by the PlayerName=[Title] option (assuming the [Title] measure is the parent measure). You can see this syntax in the above example. But just to make everything clear, the NowPlaying measures of your code should look this way:
Code:
[Title]Measure=NowPlayingPlayerName=WMPPlayerType=TitleRegExpSubstitute=1;Substitute="^$":"None"OnChangeAction=[!DisableMeasure Position][!UpdateMeasure Position][!UpdateMeter Text][!Redraw][!EnableMeasure Position][Artist]Measure=NowPlayingPlayerName=[Title]PlayerType=ArtistRegExpSubstitute=1Substitute="^$":"None"[Album]Measure=NowPlayingPlayerName=[Title]PlayerType=AlbumRegExpSubstitute=1Substitute="^$":"None"[State]Measure=NowPlayingPlayerName=[Title]PlayerType=StateIfCondition=(#CURRENTSECTION#=1)IfTrueAction=[!UnpauseMeasure "Position"]IfFalseAction=[!PauseMeasure "Position"]
Statistics: Posted by balala — 21 minutes ago