CodeCode wrote: ↑March 7th, 2023, 10:23 am
Can that work the way I am hoping?
Besides eclectic-tech's code, everything you asked for is definitely possible.
CodeCode wrote: ↑March 7th, 2023, 10:23 am
That creates the file in the skin directory.
I was really hoping I could specify a path where the file would be needed
For instance:
Code: Select all
[mMakeText]
Measure=Plugin
Plugin=RunCommand
Parameter=echo Enter the desired info and save with encoding ANSI > D:\MyFolder\Tracks.txt
State=Hide
DynamicVariables=1
The
Tracks.txt file is created into the
D:\MyFolder folder. The command used into the RunCommand plugin measure being in fact a cmd command, you can create the file anywhere you want on any of the accessible drives.
CodeCode wrote: ↑March 7th, 2023, 10:23 am
The path would be taken from the playertype=file which captures the path of the currently playing mp3 file
So for instance from a NowPlaying measure, having a
PlayerType=Cover option? If the option returns a folder (the above measure doesn't do this, it returns the path of an image, but with substitution for example, this can be done), using this measure to specify the path where the file will be created is definitely possible.
Another example:
Code: Select all
[MeasurePlayer]
Measure=NowPlaying
PlayerName=WMP
PlayerType=Cover
RegExpSubstitute=1
Substitute="(.*)\\.*\..*":"\1"
[mMakeText]
Measure=Plugin
Plugin=RunCommand
Parameter=echo Enter the desired info and save with encoding ANSI > [MeasurePlayer]\Tracks.txt
State=Hide
DynamicVariables=1
The Tracks.txt file is created in the folder returned by the [MeasurePlayer] measure, which has a substitution to eliminate the name of the file. This way the measure returns the path of a folder and the new Tracks.txt file is created in this folder, when you click (obviously you have to have somewhere the
LeftMouseUpAction=[!CommandMeasure "mMakeText" "Run"] option, to can get the measure executed and the file created).