trying to make a plugin for mushclient to pull a song from winamp

Posted by Yungen2003 on Fri 29 Sep 2006 09:41 PM — 5 posts, 30,249 views.

USA #0
ok im trying to make a plugin that pulls the name of the song and artist im listening to and only send it to 1 open world whenever the song changes trillian has a plugin that does it

i want it to send to say my world that is open named alazair this

Afk Listening to: <Artist - Song>
Australia Forum Administrator #1
I think Shadowfyr has been working on something like that, personally I don't know how to do it.
USA #2
My version used a plugin for WinAmp that it hard to find now (I am not even sure where to look). The *newer* plugin for Winamp was coded by someone using XP system calls, so won't run on older versions of Windows. Now, I had to, at the time, ask the plugin what the song name was every few seconds. Since we now have Lua, it should be possible to use the functionality of LuaCOM to make the plugin itself call your script when a song changes. However, I have yet to actually recode my own script to do this. There where issues with closing Winamp and/or Mushclient when the COM object used to do it was still active, and bigger problems, due to my not adding script for it, when doing a reload of the script while debugging, since the original copy of the COM link would remain live, but not connected to anything, while a new one was created. This would only get *worse* when using LuaCOM, since if the Winamp plugin wasn't released correctly, its attempt to call your script would crash, due to the location changing between script loads (at least assuming the object wasn't released right, which I suspect, due to the glitches I had when trying to use it). Since I haven't, after getting a new computer, even bothered to copy my music back from CDs to my new system, I haven't even tried to recode it.

Hmm. Not sure if I had the original on Magnum's site or not, but if so, then it won't matter much. Seems his sight is now redirecting to Myspace and the download page is gone. :(
USA #3
Note. The current Wimamp plugin for such control is here:

http://www.winamp.com/plugins/details.php?id=143299

Its possible this one is more official and therefor will work on any system with it installed. Its also possible it will only work with more recent versions. The relevant functions and events are listed in a .chm file that comes with the Winamp plugin. Since I have a new job, I haven't spent as much time as usual fiddling with Mushclient, so someone else will have to work out how to get it to work right.
Canada #4
I wrote a PerlScript plug-in to handle this exact ability (not the COM interface), compatible with both NUTS-based talkers and, hopefully, nearly all variations of MU*'s.

Reference: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4058

Some important notes, though:
  • The URL shown in the thread above is out of order! E-mail me at OneOfTen@gmail.com if you want a copy of my plug-in and I'll ZIP a copy of it and the sparse documentation.
  • The plug-in was written to read and interpret the output of an old, possibly no longer available, WinAMP plug-in: doSomething. Earlier versions used an even more rare WinAMP plug-in that I cannot remember the name of ATM.
  • The WinAMP plug-in had to write the ID3 info to a text file on every track change and, as of the version I last worked with back in '04, had a couple of update bugs.
  • My MUSHclient plug-in includes code for a vast range of customization via world variables. However, not all of it worked, due to variations in the way it interpreted the ID3 tag info -- WinAMP title formatting possibilities -- and the lack of output that I would have liked to get from WinAMP -- limitations of the WinAMP plug-ins I found.