From: Meredydd <mer...@ev...> - 2003-12-28 21:34:14
|
<I'm approving all cross-posts in this thread to the EB list, no need to subscribe> On Sunday 28 December 2003 18:17, nick wrote: > Hi, > > I am trying to find a way to send a message to an yahoo messenger > user, but from within a script. Ideally, from a Perl script, but > could also handle some C programming (although i do not have a > compiler on windows). This can be done from EB-Lite (aka Everybuddy) in much the same way as from Gaim, with the exception that eb-lite doesn't need a graphical interface running all the time (this is usually neither here nor there). To send a message from eb-lite, first download and install a release tarball, and set up your Yahoo/AIM account as normal, with the ebqt interface. Then, add the intended recipient of your messages to your contact list. To send a message, execute this command: eb-send "<name of your contact>" "<your message>" EB-Lite is known to work under Cygwin, but not yet under MinGW (Edward's working on that, but it's a bit of a struggle from the looks of it). Having said all that, from what you're doing, I'm not altogether sure that using a pre-built messenger such as EB or Gaim is the best idea. A quick Google indicates that there are already one or two existing Yahoo! messenger libraries for Perl (Net::YahooMessenger and Net::YMSG for starters), and several for AIM. Honestly speaking, it will probably be better for you to use one of those directly than to try to talk to a messaging client, which implements a bunch of stuff you really don't want or need. For more information, search the modules at www.cpan.org Meredydd |