Aldaviva/WinampNowPlayingToFile

Add current time to the variables

meza opened this issue · 6 comments

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?

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.

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.

It is possible.

image

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

It works!
image

Released in 2.2.0.0.