mIRC Home    About    Download    Register    News    Help

Topic Options
#749 - 09/12/02 11:43 PM Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#750 - 09/12/02 11:47 PM Re: Display winamp song in a title
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: Hell
Yeah, you'd need a DLL for that. I believe www.mircscripts.org has the one you're looking for in their DLL section.
_________________________
Experience The Void.. Are You Ready?

Top
#751 - 10/12/02 12:06 AM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#752 - 10/12/02 12:12 AM Re: Display winamp song in a title
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: Hell
No problem. If you dont find it, post a message on the webboards there, someone will tell you.
_________________________
Experience The Void.. Are You Ready?

Top
#753 - 10/12/02 12:24 AM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
OK laugh
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#754 - 10/12/02 12:37 AM Re: Display winamp song in a title
zack Offline
Fjord artisan

Registered: 09/12/02
Posts: 266
Loc: Australia
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 :-)
_________________________
You won't like it when I get angry.

Top
#755 - 10/12/02 08:26 AM Re: Display winamp song in a title
GrimZ Offline
Babel fish

Registered: 09/12/02
Posts: 66
Loc: Missouri, USA
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.
_________________________
- Linux System Administrator, Darktides Communications, LLC.

Top
#756 - 10/12/02 12:33 PM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
Hi Grimz, i`m using Winamp V2.81 and mIRC V6.03

ShadowDemon
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#757 - 10/12/02 12:39 PM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#758 - 10/12/02 10:48 PM Re: Display winamp song in a title
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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).

Top
#759 - 11/12/02 12:19 AM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#760 - 11/12/02 12:43 AM Re: Display winamp song in a title
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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.

Top
#761 - 11/12/02 12:58 AM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top
#762 - 11/12/02 01:18 AM Re: Display winamp song in a title
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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)
  }
}

Top
#763 - 11/12/02 10:07 PM Re: Display winamp song in a title
shadowdemon Offline
Fjord artisan

Registered: 09/12/02
Posts: 295
Loc: Darlington, United Kingdom
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
_________________________
Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Top