Valhalla Legends Archive

General => General Discussion => Topic started by: iago on November 13, 2004, 11:27 PM

Title: Xmms Plugin for Gaim
Post by: iago on November 13, 2004, 11:27 PM
I wrote this today, mostly to learn but also because it's handy.  It's a plugin for gaim that lets you control xmms on Linux.  You can download it here:
http://iago.no-ip.com/xmms-playing.tgz

I included source and compiled, but there's no makefile (since I haven't figured out how to make them well yet).

Extract it to /usr/local/lib/gaim or ~/.gaim/plugins, restart gaim, and that's it!  Use the command ".xmms help" to get help on it.
Title: Re: Xmms Plugin for Gaim
Post by: hismajesty on November 14, 2004, 01:18 AM
Did you write it in Perl? The xmms plugin on the gaim website that's in Perl is only a few line, the C one is pretty long though.
Title: Re: Xmms Plugin for Gaim
Post by: iago on November 14, 2004, 03:17 AM
No, I wrote it in C.  I don't know enough about Perl to use it for a plugin.  This is somewhat long, but fairly simple. 

And yeah, I knew there was already an Xmms plugin, but I had already started this one when I noticed.  Plus, I was trying to learn how to do a plugin more so than actually write one, and I did learn from it, so it's all good.

<edit> incidentally, the Perl script thingy is buggy, apparently.  And the guy who wrote the Perl/C Xmms plugin said that the C one worked much better.
Title: Re: Xmms Plugin for Gaim
Post by: idoL on November 16, 2004, 02:34 PM
Thanks, I use Gaim and XMMS for Linux.
Title: Re: Xmms Plugin for Gaim
Post by: iago on November 16, 2004, 05:06 PM
I also wrote a plugin that splits long messages into multiple smaller messages.  It doesn't work for msn, though, because msn has a shorter length.

http://iago.no-ip.com/splitter.tgz
Title: Re: Xmms Plugin for Gaim
Post by: iago on November 16, 2004, 10:40 PM
I've made some significant improvements, in case anybody cares:
http://iago.no-ip.com/plugins.tgz

There are 3 now:
splitter.so -- splits up overly long messages
encode.so -- lets you encode/decode .hex, .binary, and .reverse.  I need to fix this up to use /commands instead of .commands.  Tomorrow!
xmms-plugin.so -- lets you control xmms.  It now uses /xmms instead of .xmms.
Title: Re: Xmms Plugin for Gaim
Post by: Mephisto on November 16, 2004, 10:49 PM
Quote from: iago on November 16, 2004, 10:40 PM
I've made some significant improvements, in case anybody cares:
http://iago.no-ip.com/plugins.tgz

There are 3 now:
splitter.so -- splits up overly long messages
encode.so -- lets you encode/decode .hex, .binary, and .reverse.  I need to fix this up to use /commands instead of .commands.  Tomorrow!
xmms-plugin.so -- lets you control xmms.  It now uses /xmms instead of .xmms.

You have too much time on your hands.
Title: Re: Xmms Plugin for Gaim
Post by: iago on November 17, 2004, 07:29 AM
Why's that?  I'm trying to learn how to write plugins for Gaim, and each of them are slightly different.  And I've learned a lot from them. 
Title: Re: Xmms Plugin for Gaim
Post by: Sargera on November 17, 2004, 10:50 PM
Quote from: iago on November 17, 2004, 07:29 AM
Why's that?  I'm trying to learn how to write plugins for Gaim, and each of them are slightly different.  And I've learned a lot from them. 

Hehe, now that I read the thread; when I looked at it first glance I thought it said xmas plugin and I immediately replied.  :)