EasyWinampControl

Presentation

EasyWinampControl is a C plugin for Xchat (windows) which allows you to control Winamp from xChat and to display the song you are currently playing. Why have I created yet another plugin for Winamp? Because the only ones I found (in C) where really bad (the one I was using before was creating a mp3.conf file in the directory of the mp3, and all parent directories, guess why). I mailed some authors of these plugins but never managed to get the source, nor the license. So, here it is, EasyWinampControl v1.0, under GNU Lesser General Public License (LGPL). Hope you'll enjoy it.

Installation

First, you have to copy easywinampcontrol.dll in the 'plugins' directory of your xchat path. It should already exists, if not, create it. Then, restart xchat. It could have been enough, but as I wanted the output of the plugin to be more customizable, there is a second step to the installation procedure. Launch xChat, and then in the menu "Settings > lists > User commands", add a new user-defined command called "dispcurrsong". The command is what the plugin will be displaying, you can use for example:

    
    me ecoute: &7 [%5/%6] %3kbps - %2Khz
    
  

How to use EasyWinampControl

EasyWinampControl can both display the song you are currently listening to, and get winamp to do some basic functions, as jumping to the next song, pause, stop, and so on. Thus, there are two commands:

wcmd:
It stands for "Winamp Command". You have to use it like this: /wcmd [next|prev|play|stop|pause].
wp:
It stands for "Winamp is Playing". Simply type /wp.

If you don't like the names of the commands, you can always create aliases in "Settings > lists > User commands". Simply type in the "name" field the command you wish to be an alias of wcmd or wp, and in the Command field the command it should be interpreted like, wcmd or wp.

What's new

Version 1.2 (Thanks to Stuart Marks for his ideas)
Version 1.1
Version 1.0

Download

Here it is, with the source; feel free to modify it, redistribute it, or what else you want, as long as it fulfill the LGPL license.

Contact

I quite enjoyed coding this plugin, as it was far more easier as I first thought. So, for any suggestion feature request, donation, whatever, you can contact me per email at yann_@removeme_mandragor.org (replace _@removeme_ with an @).