It is currently March 29th, 2024, 7:57 am

Can RunCommand be used to create a txt file

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Can RunCommand be used to create a txt file

Post by CodeCode »

Ok, got it!
I went with ET’s version since it used the same playertype=file I was already sort of used to what the parsing looked and worked,

Thanks both you guys!! :rosegift:
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Can RunCommand be used to create a txt file

Post by CodeCode »

I was actually pretty close to this solution, but somehow I overlooked StartInFolder. :Whistle

Here are the sections I needed for this idea.

Code: Select all

[MeasureTxtPath]
Measure=NowPlaying
Playername=[MeasureTitle]
PlayerType=File
RegExpSubstitute=1
Substitute="^(.*)\\.*$":"\1\"
DynamicVariables=1

[mMakeTextFile]
Measure=Plugin
PlugIn=RunCommand
Parameter=echo Edit This File to Start The Tracklist File > Tracks.Txt
State=Hide
StartInFolder=[&MeasureTxtPath]
FinishAction=["[MeasureTxtPath]\Tracks.txt"]
DynamicVariables=1

[Button4F]
Meter=Shape
Shape=Rectangle 171,292,28,28,14 | StrokeWidth 0 | Fill Color #FillColor#
Antialias=1
LeftMouseUpAction=[!CommandMeasure mMakeTextFile Run ][!Update]
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Can RunCommand be used to create a txt file

Post by eclectic-tech »

Always glad to help. :welcome:

Have you considered using the FileView plugin to generate a list of tracks in a folder, then edit that folder by adding a 'tracks.txt' for any multi-track files? This would give you access to all single song tracks and a list of multi-track files.

That may not be what you are interested in doing, but it offers more possibilities.
Anyway, good luck with your project. :great:
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Can RunCommand be used to create a txt file

Post by CodeCode »

eclectic-tech wrote: March 8th, 2023, 2:27 am Always glad to help. :welcome:

Have you considered using the FileView plugin to generate a list of tracks in a folder, then edit that folder by adding a 'tracks.txt' for any multi-track files? This would give you access to all single song tracks and a list of multi-track files.

That may not be what you are interested in doing, but it offers more possibilities.
Anyway, good luck with your project. :great:
I was thinking along those lines. Given some perspective from other posts about expanding this skin.

The real idea was to get tracks for obscure recordings and 90s tech-synth, and transcribing what available tracks were available to be named by the end user. Which is mostly only me but it was fun getting these new-to-me ideas and methods to get them working.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Can RunCommand be used to create a txt file

Post by eclectic-tech »

CodeCode wrote: March 8th, 2023, 11:33 am I was thinking along those lines. Given some perspective from other posts about expanding this skin.

The real idea was to get tracks for obscure recordings and 90s tech-synth, and transcribing what available tracks were available to be named by the end user. Which is mostly only me but it was fun getting these new-to-me ideas and methods to get them working.
Yeah, I see what you are doing and the 'Tracks.txt' should work for your idea.
I know those compilation files are difficult to navigate without some kind of menu, so this is a good idea. :thumbup: