mIRC Homepage

Display winamp song in a title

Posted By: shadowdemon

Display winamp song in a title - 09/12/02 11:43 PM

Hi, i`m back.

Ok i would like to write a script that displays the current Winamp song in the Topic of my channel, i aint got a clue how i would go about doing this, i have tried various mIRC related winamp displaying scripts, but they dont work properly.

Can anybody point me in the right direction ? maybe i have to use a dll ? i dunno

Thanks
ShadowDemon
Posted By: Frog

Re: Display winamp song in a title - 09/12/02 11:47 PM

Yeah, you'd need a DLL for that. I believe www.mircscripts.org has the one you're looking for in their DLL section.
Posted By: shadowdemon

Re: Display winamp song in a title - 10/12/02 12:06 AM

Thanks Frog

I`ll go check out that site now, i must a missed it, been browsing their site too, just the other day blush

ShadowDemon
Posted By: Frog

Re: Display winamp song in a title - 10/12/02 12:12 AM

No problem. If you dont find it, post a message on the webboards there, someone will tell you.
Posted By: shadowdemon

Re: Display winamp song in a title - 10/12/02 12:24 AM

OK laugh
Posted By: zack

Re: Display winamp song in a title - 10/12/02 12:37 AM

What you are looking for is either winamp.dll or swamp.dll, I am still trying to locate them, but a google search should prove results :-)
Posted By: GrimZ

Re: Display winamp song in a title - 10/12/02 08:26 AM

What winamp version do you have? If you're not on 3.x I have DLLs to do it on my site, and if you can't find them I can make you one (They're not hard) just ask.
Posted By: shadowdemon

Re: Display winamp song in a title - 10/12/02 12:33 PM

Hi Grimz, i`m using Winamp V2.81 and mIRC V6.03

ShadowDemon
Posted By: shadowdemon

Re: Display winamp song in a title - 10/12/02 12:39 PM

Hi Zack I found WA_Link also have Winamp Control Plugin for mIRC - Version 1.01 which i cant seem to get to work. frown

Will search for the winamp.dll and swamp.dll

Thanks
ShadowDemon
Posted By: Online

Re: Display winamp song in a title - 10/12/02 10:48 PM

swamp.dll
swamp-help.txt

Place the dll in your mirc folder and use $dll(swamp.dll,WinAmpGet,TRACKFILENAME) to retrieve the filename. you can then use the $sound() identifier to get more info on the file (see /help $sound).
Posted By: shadowdemon

Re: Display winamp song in a title - 11/12/02 12:19 AM

Thanks Online

i`ll have a go with swamp, is it possible to make a dialog box with a button that when clicked upon, fetches the required info from Winamp and swamp and then changes the topic ?


Thanks
ShadowDemon
Posted By: Online

Re: Display winamp song in a title - 11/12/02 12:43 AM

yeah...
Code:
on *:dialog:name:sclick:button-id:{
  if ($dll(swamp.dll,WinAmpGet,TRACKFILENAME) != $!null) {
   topic #chan $ifmatch
  }
}
use $nopath($ifmatch) if you want to display only file-name without its path.
Posted By: shadowdemon

Re: Display winamp song in a title - 11/12/02 12:58 AM

Thanks Online, works great, i used the $nopath, but i just thought of sumthing, how would i get it to say in the topic


Winamp now playing - songnamegoeshere


Also how would i script it to check if winamp was running or not and display a message saying if it wasnt ? confused

Anyways Thanks
ShadowDemon
Posted By: Online

Re: Display winamp song in a title - 11/12/02 01:18 AM

If song name is $!null, then consider it as winamp isn't running...
Code:
on *:dialog:name:sclick:button-id:{
  if ($dll(swamp.dll,WinAmpGet,TRACKFILENAME) != $!null) {
    topic #chan Winamp now playing - $nopath($ifmatch)
  }
  else {
    !.echo -q $input(Nothing is being played,o)
  }
}
Posted By: shadowdemon

Re: Display winamp song in a title - 11/12/02 10:07 PM

Thanks Online, hehe works great, this is my first time with messing with a dll or whatever, now just have to play with the dialog box and um err thats it.

Thanks
ShadowDemon
© 2019 mIRC Discussion Forums