Aldaviva / WinampNowPlayingToFile

⚡ When Winamp plays a track, this plugin will save the track metadata and album art to files.
Apache License 2.0
17 stars 1 forks source link

Add current time to the variables #15

Closed meza closed 1 year ago

meza commented 1 year ago

Hey!

Amazing plugin, thanks for this! I often play mixes and it would be incredibly useful to be able to show the current time in the given track. Could this be added?

Aldaviva commented 1 year ago

Hi @meza,

Interesting suggestion! I don't know how to do that yet. The plugin framework I'm using doesn't expose the current time. There may be a way to send a request from this plugin to Winamp to retrieve that information, but I will have to search around for it (the documentation isn't good).

I'll let you know if I find something.

Aldaviva commented 1 year ago

This forum post makes it sound like the magic IPCCommand lparam number for elapsed time might be 105, which I believe because playback state is 104.

Aldaviva commented 1 year ago

It is possible.

image

Aldaviva commented 1 year ago

You can try replacing WinampNowPlayingToFile.dll with this development snapshot build and inserting something like {{Elapsed:m\:ss}} into your text template, or whatever other timespan format you like.

WinampNowPlayingToFile.zip

meza commented 1 year ago

It works!

image
Aldaviva commented 1 year ago

Released in 2.2.0.0.