Author Topic: Winamp np: script  (Read 7196 times)

Ewokki-

  • Guest
Winamp np: script
« on: April 20, 2004, 10:44:10 AM »
Is there a Winamp now playing script for

IceChat? You know press a button and if Winamp is playing something it's pasted on the channel like this -> np: Winamp

song (min:sec)

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Winamp np: script
« Reply #1 on: April 20, 2004, 12:12:55 PM »
Have you looked in the Downloads - Scripts Section?
IceAmp

is a basic winamp script.
The IceChat God

Ewokki-

  • Guest
Winamp np: script
« Reply #2 on: April 20, 2004, 12:31:48 PM »
Cool it worked...yes i noticed it earlier but it said that it

only works on 2.x and I have 5.x version but anyway it works fine expect it doesn't show the length of the song...

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Winamp np: script
« Reply #3 on: April 20, 2004, 01:34:53 PM »
Well, it is a very basic script  :)
The winamp site has a

section on how to do more script commands, I am sure there is some info there on how to do it.

Also, IceAmp has now

been updated to included the song length.
The IceChat God

Ewokki-

  • Guest
Winamp np: script
« Reply #4 on: April 26, 2004, 12:22:05 PM »
Well, now the whole script doesn't work. Only play/stop

works...put not songinfo which is the most important. Here's a log from my console:

[11:12] -- Script Engine

Error:1032:Invalid character: Line #1 -- SongInfo  $currentservernumber
[11:12] -- Script Engine Error:1032:Invalid

character: Line #1 -- StartAmp  $currentservernumber
[11:12] -- Script Engine Error:1032:Invalid character: Line #1 --

StartAmp  $currentservernumber
[11:12] -- Script Engine Error:1032:Invalid character: Line #1 -- PlayList  

$currentservernumber
[11:12] -- Script Engine Error:1032:Invalid character: Line #1 -- CloseAmp  $currentservernumber


[11:12] -- Script Engine Error:1032:Invalid character: Line #1 -- StartAmp  $currentservernumber
[11:12] -- Script

Engine Error:1032:Invalid character: Line #1 -- AmpPlay  $currentservernumber
[11:12] -- Script Engine Error:1032:Invalid

character: Line #1 -- SongInfo  $currentservernumber

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Winamp np: script
« Reply #5 on: April 26, 2004, 01:03:59 PM »
Grab the new update to IceAmp, it works a lot

better.

Best thing to do is unload the IceAmp Addin, and then download the Update, over write the files, and then

re-load in the Updated Addin.
The IceChat God

Ewokki-

  • Guest
Winamp np: script
« Reply #6 on: April 28, 2004, 12:23:37 PM »
It doesn't work. I don't know what you did but that songinfo

isn't working. Those other commands are still working even though they display the same error too.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Winamp np: script
« Reply #7 on: April 28, 2004, 01:03:32 PM »
The songinfo sub needs a "Dim msg" placed into it.

Sub

SongInfo(ServerNumber)
  Dim msg
  if FindWinAmp(ServerNumber) = False then exit sub
 

msg = API_GetWindowtext(hwndWinAmp,"", 200)
  SendCommand "/me currently Playing: " & msg & " 13Length(" &

GetDuration(SongLength) & ")  12IceAmp5 4Script" ,ServerNumber
End Sub

If you have further problems, let me

know.
The IceChat God

ADB

  • Newbie
  • *
  • Posts: 47
Winamp np: script
« Reply #8 on: April 28, 2004, 07:40:20 PM »
For some reason, Snerf, even after the change you suggested,

the script still didn't work, so I went to all the SendCommands and removed the ", ServerNumber" at the end. Works just fine

now.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Winamp np: script
« Reply #9 on: April 28, 2004, 10:33:10 PM »
Well, I am glad someone figured it out. The script worked fine

for me all along, but perhaps because I am using a 5.20 beta version, but in any case, I am glad it works for you.
The IceChat God