mIRC Home    About    Download    Register    News    Help

Print Thread
#749 09/12/02 11:43 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 111
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
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?
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 111
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
No problem. If you dont find it, post a message on the webboards there, someone will tell you.


Experience The Void.. Are You Ready?
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
OK laugh


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
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.
Joined: Dec 2002
Posts: 66
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 66
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.
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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).

Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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.

Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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)
  }
}

Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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

Link Copied to Clipboard