Author Topic: Output of current song into textfile?  (Read 12612 times)

Jurgen

  • Guest
Output of current song into textfile?
« on: 31 Oct '03 - 09:44 »
Hi guys,
how can I make XMplay write the currently played song and group into a text file?
regards, Jurgen

JimVonMoon

  • Posts: 70
Re:Output of current song into textfile?
« Reply #1 on: 31 Oct '03 - 15:57 »
You mean the title of the song and the group name? I'm not sure if it's possible without an additional plugin. It's quite easy to code, though (you can get info about the currently played file via DDE <consult release info for XMPlay 2.4 in xmplay.txt> or just read it out of the XMPlay's main window caption).

Jurgen

  • Guest
Re:Output of current song into textfile?
« Reply #2 on: 31 Oct '03 - 21:15 »
On WinAmp3 I used to do it with the AMIP plugin, but I don't think that runs with XMplay

Keltic Danor

  • XMPlay Support
  • Posts: 856
Re:Output of current song into textfile?
« Reply #3 on: 7 Nov '03 - 05:40 »
how does the AMIP plugin work?

Does it only write the song to a text file when you tell it too. Or is it a song history type thing, writing every song you play into a textfile.

Jace

  • Posts: 842
Re:Output of current song into textfile?
« Reply #4 on: 8 Nov '03 - 01:25 »
I reckon that it would put the current song onto a textfile when it starts to play, and replaces the next song's title on the file when the next song goes on.. (At least that's how I would like it to work.. ;D)
And when nothing is playing, the textfile would be empty.. ::)

Jurgen

  • Guest
Re:Output of current song into textfile?
« Reply #5 on: 11 Nov '03 - 19:20 »
Exactly, that's what the AMIP plugin does. There's always just one song title in that little txt file. When the next song comes, it overwrites the old one. When there's no song, then the file is empty. One can configure WHAT it actually writes (like only the song name, or the band, too, and maybe the playtime, the CD album and so on, but I only used it to write the Band and the Song).

Jurgen

  • Guest
Re:Output of current song into textfile?
« Reply #6 on: 11 Nov '03 - 19:22 »
Here's the readme from AMIP:

Advanced mIRC Integration Plug-In (AMIP) v2.29
(by Serge Baranov, mailto:coder@tools-for.net)

Winamp now-playing plug-in.

Sometimes you can see in chat something like this
[12:01] Nick is now listening to Bomfunck MC's - Freestyler
or you receive e-mail from the friend of yours with
np: Mystic Circle - Shadows Over Worms

You may wonder, how's this person doing this.
It is extremely easy with AMIP!

AMIP has a lot of exciting and advanced features:

- playlist search (Ctrl+J)
- integration with any application (set preset #5 and try Ctrl+Alt+Z hotkey)
- full support of ID3v1 and ID3v2 tags in mp3 files
- more than 100 variables which can be passed to chat window
  (title, artist, length, bitrate, samplerate, file size, e.t.c)
- support of mIRC control codes (color, underline, bold)
- output to active channel/status/all channels/specified channels
- writing information to file instead of mIRC (v1.02+)
- simple playlist search and playback of matched files
  (performed by commands from mIRC)
- playlist search with regular expressions (perl5 regexp)
- full Winamp control from mIRC (stop/play/pause/fw/rew/volume/next/prev track)
- integration with your mIRC scripts (it is possible to get/set any plug-in
  settings directly from mIRC)
- user friendly interface to set up output string format and other settings
- help file with description of all commands and variables
- handy installer
- and a lot of other features (check out help)

Keltic Danor

  • XMPlay Support
  • Posts: 856
Re:Output of current song into textfile?
« Reply #7 on: 12 Nov '03 - 13:37 »
Here's the readme from AMIP:

Advanced mIRC Integration Plug-In (AMIP) v2.29
(by Serge Baranov, mailto:coder@tools-for.net)

Winamp now-playing plug-in.

Sometimes you can see in chat something like this
[12:01] Nick is now listening to Bomfunck MC's - Freestyler
or you receive e-mail from the friend of yours with
np: Mystic Circle - Shadows Over Worms

You may wonder, how's this person doing this.
It is extremely easy with AMIP!

AMIP has a lot of exciting and advanced features:

- playlist search (Ctrl+J)
- integration with any application (set preset #5 and try Ctrl+Alt+Z hotkey)
- full support of ID3v1 and ID3v2 tags in mp3 files
- more than 100 variables which can be passed to chat window
  (title, artist, length, bitrate, samplerate, file size, e.t.c)
- support of mIRC control codes (color, underline, bold)
- output to active channel/status/all channels/specified channels
- writing information to file instead of mIRC (v1.02+)
- simple playlist search and playback of matched files
  (performed by commands from mIRC)
- playlist search with regular expressions (perl5 regexp)
- full Winamp control from mIRC (stop/play/pause/fw/rew/volume/next/prev track)
- integration with your mIRC scripts (it is possible to get/set any plug-in
  settings directly from mIRC)
- user friendly interface to set up output string format and other settings
- help file with description of all commands and variables
- handy installer
- and a lot of other features (check out help)

Oh so its a mIRC script is it, well that makes it all alot easier then. Dunno about *everything* in that feature list, but I think a little mIRC script to do what you want should be easy done.

Although first, have you seen this: XMPlay Script for mIRC.

Also available from the support site: Support Site

Jace

  • Posts: 842
Re:Output of current song into textfile?
« Reply #8 on: 13 Nov '03 - 00:39 »
But, mIRC isn't the only place that would be handy for..
For example, you (read: I ;D) could assign a LiteStep module to show up the contents of a certain text file all the time.. ::)
(Thus making the current song being displayed all the time on the desktop! :D)

Haze

  • Guest
Re:Output of current song into textfile?
« Reply #9 on: 13 Nov '03 - 09:48 »
Don't forget the other apps such text files can be used in, such as webcam software. ^_~

Jurgen

  • Guest
Re:Output of current song into textfile?
« Reply #10 on: 13 Nov '03 - 21:46 »
Well, I am not using that AMIP for mIRC (actually I should write did not use, since I don't use WinAmp anymore ;-). I only used it to write the currently playing song info into a text file, which my email program then put under my signature in my emails. That's what I am looking for :-)

Mojetitak

  • Posts: 19
Re: Output of current song into textfile?
« Reply #11 on: 10 Jul '08 - 23:28 »
It would be extremely nice if someone wrote a plugin that puts this text into clipboard.
I think that's a way better than striving to provide integration for every single messenger or chat program...

saga

  • Posts: 2564
Re: Output of current song into textfile?
« Reply #12 on: 10 Jul '08 - 23:57 »
this is probably what you're looking for. a quick hack. run the EXE and it will copy the song that's currently played in XMplay  to the clipboard every 2 seconds. run it with command line switch "-r" and it will register as an autostart program.
download (vb6 source included)
« Last Edit: 10 Oct '08 - 23:12 by saga »

Zarggg

  • Posts: 1242
Re: Output of current song into textfile?
« Reply #13 on: 11 Jul '08 - 17:29 »
Actually, a "copy current track title to clipboard" shortcut would not be a bad idea.

raina

  • Posts: 1163
Re: Output of current song into textfile?
« Reply #14 on: 11 Jul '08 - 18:12 »
Should be trivial, as "copy playlist entry to clipboard" already exists. (Ctrl-c)

Mojetitak

  • Posts: 19
Re: Output of current song into textfile?
« Reply #15 on: 13 Jul '08 - 13:40 »
I should have known about that shortcut. It's kinda helpful, thanks.
Still it would be nice to be able to customize the string... Album, bitrate or just some simple Now playing:
this is probably what you're looking for. a quick hack. run the EXE and it will copy the song that's currently played in XMplay  to the clipboard every 2 seconds. run it with command line switch "-r" and it will register as an autostart programme.
http://saga-games.ath.cx/stuff/npclipboard.zip (vb6 source included)
I guess this solution would be a bit too much... Well, i still need my clipboard for some other stuff, you know. Global hotkeys are so much better than automatic copying.
« Last Edit: 13 Jul '08 - 13:47 by Mojetitak »