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

Help: Rainmeter Skins • Re: How to make RM add the extention file in a text line.

$
0
0
How can I do that?
What Yincognito meant in his reply is this: add the following measure to your code:

Code:

[MeasureFileType]Measure=NowPlayingPlayerName=[MeasurePlayer]PlayerType=FileRegExpSubstitute=1Substitute="^.*\.":""
This measure returns only the extension of the file. Note that besides adding the proper Substitute option (Yincognito's option, to be precise, not mine!), I also rewrote the measure to be not a Plugin measure, but a NowPlaying measure. Many years ago these measures were indeed Plugin measures, but in meantime they have been converted to internal measures and these days they should be used accordingly. Same way, all of your measures ([MeasurePlayer], [MeasureAlbum] and [MeasureYear]) should be rewritten the same way, to convert them to NowPlaying measures, instead of using them as Plugin measures.
Now if added this measure, you can alter a little bit the [MeterFileBit] meter, by adding the following two options:
  • MeasureName2=MeasureFileType
  • Text=%2 in %1 kbps.
Along with this remove the Postfix option, especially that this option has been deprecated long time ago:

Code:

[MeterFileBit]MeasureName=MeasureFileBitMeasureName2=MeasureFileType...Text=%2 in %1 kbps.;Postfix=" kbps."...
(see that I left the Postfix option, but commented it out).

Statistics: Posted by balala — Today, 7:05 pm



Viewing all articles
Browse latest Browse all 719

Trending Articles