eclectic-tech wrote: ↑March 5th, 2023, 2:11 pm
And I strained mine too!
Happy to help.
Looking over things all the while feeling stuck I am sure I tried all of those parse tricks but not all at the same time, so I oversimplified. Unnecessarily and not really like 'me'
These are the three sections I agonized over for like a 36 hour ling skin editing frenzy. Those three are the working code. That time includes a lot of co,pletely rebuilding the skin...
Code: Select all
[MeasurePath]
Measure=NowPlaying
Playername=[MeasureTitle]
PlayerType=File
RegExpSubstitute=1
Substitute="^(.*)\\.*$":"\1"
DynamicVariables=1
[MeasureWebParser]
Measure=WebParser
URL="File://[&MeasurePath]\Tracks.txt"
RegExp=(?siU)^#Get##Get##Get##Get##Get##Get##Get##Get##Get##Get##Get##Get#
LogSubStringErrors=0
[MeasureWebParserChild0]
Measure=WebParser
Url=[MeasureWebParser]
StringIndex=1
IfMatch=^$
IfNotMatchAction=[!SetVariable TrackCount ([#TrackCount]+1)][!SetOption MeterTrack FontSize "11"][!EnableMouseAction ButtonTracksF "LeftMouseUpAction"][!Update]
IfMatchAction=[!DisableMouseAction ButtonTracksF "LeftMouseUpAction"][!SetOption MeterTrack FontSize "14"][!Update]
DynamicVariables=1
But - there is always some new idea that begs more questions. I digress, and allow my retina to fix itself back into my eye socket.
Thanks again ET.
Just another mention of you saying parsing takes two forms with \r or \n. The last point is that your original post that mentioned first the \r but amended that to \n, the end of the text file must be a newline, or it doesn't work - or rather falls short of the last line showing up.
My last for now tweak is if the txt file exists the surrounding text is down sized to fit more, or no txt file to be scaled up 14.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.