PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: Madman on 05 May, 2005, 04:44:48

Title: WinampScript
Post by: Madman on 05 May, 2005, 04:44:48
I desided to make my own winamp.

Please read the inctructions in the begning

Damm.. it's to long for the board... ;p

Here we go... =)

WinampScript (http://destruction.myftp.org/Lua/Lua5/WinampScript.lua)
Title:
Post by: NotRabidWombat on 05 May, 2005, 13:42:13
Please take my name off of that.

-NotRabidWombat
Title:
Post by: Madman on 05 May, 2005, 15:21:05
hmm.... done....
Title:
Post by: 6Marilyn6Manson6 on 05 May, 2005, 16:45:05
Hi madman... can you made this script for Windows Media Player? Thanks
Title:
Post by: Madman on 05 May, 2005, 18:53:07
QuoteOriginally posted by 6Marilyn6Manson6
Hi madman... can you made this script for Windows Media Player? Thanks

No... since clever is for winamp only...
it can be done but then we must have a program that can change stuff in winamp media player by command line... and i doubt that microsoft has support for changing things in there media player thru a dos promt...

sorry...
Title:
Post by: 6Marilyn6Manson6 on 05 May, 2005, 19:31:29
QuoteOriginally posted by madman
QuoteOriginally posted by 6Marilyn6Manson6
Hi madman... can you made this script for Windows Media Player? Thanks

No... since clever is for winamp only...
it can be done but then we must have a program that can change stuff in winamp media player by command line... and i doubt that microsoft has support for changing things in there media player thru a dos promt...

sorry...

No problem madman.. thanks a lot for your reply  :)
Title: Madman nedd help
Post by: MDFP on 26 July, 2005, 01:19:08
Hi Madman.
You Said that you've to config Clever firts, but, config what?
I cant see nothing!

Thanks
Title:
Post by: Madman on 26 July, 2005, 05:54:56
Run the clever.exe file, it should popup a cmd window and tell u to type the direcectory to winamp.
if not, go to c:\CLEVER and delete clever.cfg adn run the exe file agin...
Title:
Post by: yoonohoo on 27 July, 2005, 17:04:59
Is the link dead or is it me?
Title:
Post by: Psycho_Chihuahua on 27 July, 2005, 17:38:04
must be you...

try this one --> PtokaX Script Database (http://ptxscriptdb.psycho-chihuahua.net/download.php?view.76)
Title: Earlier Version
Post by: MDFP on 27 July, 2005, 20:41:04
Hi Guys.

Showld this sctipr work with earlier versions of Winamp?


Thanks
Title:
Post by: Madman on 27 July, 2005, 21:42:31
I'm useing it on 2.91... =) Also tested some on 5.x
Title:
Post by: hnr21 on 27 July, 2005, 23:03:01
Well... i'm using Win 2003 Build 3790, PtokaX0.3.3.1 and Winamp 5.08c and clever seems to not work very well as when entering "clever.exe songtitle" returns diff. outputs ... none stating the full title name just parts of it :(
Maybe i'm doing' smth wrong here ...
Title:
Post by: hnr21 on 27 July, 2005, 23:17:38
Ohh ...well, i disabled in Winamp's 'General Preferences' the "Scroll title in teh Windows taskbar" option and now it works properly.....
Title:
Post by: [NL]Tazzie on 29 July, 2005, 16:17:11
Nice one madman, but i made a minor change.

Since there are user who also have a moderator/netfounder. That one is unable to load the winamp song.

SendComm = 1      -- Send user command [right click] "1"=yes "0"=no

SetTo = {
 
Title:
Post by: Sarpanch on 30 July, 2005, 15:50:10
Can anyone tell me exactly how and what this script acutally does bcuz ive got an rough idea but not very sure thanks in advance :))
Title:
Post by: Madman on 30 July, 2005, 18:33:07
Sure.. it's simple...
The script allows you to control winamp on the hub pc.
You can pause, jump 2 next track, previous track, show current playing song and so on...
Title:
Post by: Sarpanch on 31 July, 2005, 13:38:18
so would i hav to use the Shoutcast software also? well i would have to wudnt i?
Title:
Post by: Madman on 31 July, 2005, 13:41:07
Nope.... Winamp and Clever is enough....
Title:
Post by: Sarpanch on 31 July, 2005, 20:05:49
Lol ive tried to make it work any give me step by step guide on how 2 do this? u can just pm me if thats ok wid you :]
Title:
Post by: Madman on 31 July, 2005, 20:34:28
Sure...

1) Install winamp
2) Install Clever
3) Go to where you installed Clever
4) Open a new explorer window
5) Go to C:\
5.1) Create a folder called CLEVER on C:
6) Open C:\CLEVER
7) Switch back to the other explorer window
8) Run Clever.exe
9) Type the path to Winamp (For me D:\Program\Winamp)
10) Type 0 or 1, i choose 0
11) Open the script, find the Setup table
12) change ["Clever"] = "The path 2 where you installed clever",
12.1) Do the same with ["Music"] = "Where you have the Mp3s",
13) Rember that you have to type 2 \ in the text above..
if it's C:\Program\Clever\  then type C:\\Program\\Clever\\
Same goes for Music
14) make sure that Winamp and Script are started...
15) Done....

Now you can reconnect to the hub and you should have a menu called WinampScript   If you dont change that as well ;)
Title:
Post by: Sarpanch on 31 July, 2005, 20:50:16
Thanks alot Madman, if i need any help ill come back to you if you dont mynd  :))  btw does it matter where the music is does it have to be in tha same clever folder? or any and just put the path to it?
Title:
Post by: Madman on 31 July, 2005, 22:45:51
The music can be in any folder.. as long as it's on the same compuer...
Title:
Post by: deus on 07 August, 2005, 00:43:01
trying to make this bot show who used the command !w.play

want it to be something like this
Playing... track nr: 379  Requested by: USERNAME
and of course i want everyone to see this in MC

i thought it would be something like this:
SendToAll(Setup.Name, "Playing... track nr: " ..nr .."  Requested by: " ..curUser() )

but that didnt work (if it did i wouldnt post here) ;)
*EDIT* fixed the problem above using curUser.sName *EDIT*

one more thing if possible it would be nice to make the bot send a "pretty" on a selected time like every hour or so but only if status is playing :P

can someone help me? i'm new at coding lua so i really want to learn some more ;)
Title:
Post by: Madman on 07 August, 2005, 02:24:51
QuoteOriginally posted by deus
one more thing if possible it would be nice to make the bot send a "pretty" on a selected time like every hour or so but only if status is playing :P

can someone help me? i'm new at coding lua so i really want to learn some more ;)
Yes.. The bold lines are the ones added...

Setup = {
["Clever"] = "D:\\Program\\clever\\", -- Where did you install Clever
["Music"] = "D:\\ServerMusic\\", -- And where do you have you Mp3 files?
["Name"] = "WinampScript", --The bots name
-- Outcome of standard Playing ][ title ][
["BeforeTitle"] = "Playing ][",
["AfterTitle"] = "][",
["Menu"] = "WinampScript"[b], -- Notice the , !
["Time"] = 1,[/b]
}
function Main()
frmHub:RegBot(Setup.Name)
[b]SetTimer(1000*60*60*Setup.Time)
StartTimer()[/b]
end
[b]function OnTimer()
os.execute(Setup.Clever.. "clever.exe status > winamp.tmp")
local file = io.open("winamp.tmp")
local status = file:read("*all") file:close() os.remove("winamp.tmp")
if status == "Pause" or status == "Stop" then
else
os.execute(Setup.Clever.. "clever.exe prettyinfo > winamp.tmp")
local file = io.open("winamp.tmp")
local info = file:read("*all") file:close() os.remove("winamp.tmp")
SendToAll(Setup.Name, "\r\n" ..info) return 1
end
end[/b]

Thought it was better 2 copy that... then try to instrut u to do that....

The script in the link has NOT been updated...
Title:
Post by: deus on 07 August, 2005, 02:39:07
thanx... that works perfectly but i changed the status == "Paus" line to status == "Play" since i dont really need to know if its paused just if its playing ;)
and of course fixed the if and else's (i have programmed other languages) hehe
but a big thanks for the help...

btw... how come i only get about 1400 of my 1550 mp3s in the playlist? i've checked so every file has been "verified" by winamp (shows the track length)
Title:
Post by: Madman on 07 August, 2005, 10:53:45
QuoteOriginally posted by deus
thanx... that works perfectly but i changed the status == "Paus" line to status == "Play" since i dont really need to know if its paused just if its playing ;)
and of course fixed the if and else's (i have programmed other languages) hehe
but a big thanks for the help...

the status == "Pause" linme check it's paused or stoped... if so.. do nothing.. else do pretty info...

QuoteOriginally posted by deus
btw... how come i only get about 1400 of my 1550 mp3s in the playlist? i've checked so every file has been "verified" by winamp (shows the track length)

Good question... i'll check.. just gonna read the forum...

*Edit*
Okey... checked it out... it seams that it only takes a-z and 0-9... so any ? ? ? or some oether signs probarly wont be read..
Amd it for some reason.... some of the id3v2 tags on some songs make them not to get extracted with clever...

i added 1660 song.. but only got 1657... so i started compering the list...
first i did
100 - 100 Same song? yes
200 - 200 Same song? no
Then i check 150 - 150.. same song yes
then 160.. yes 170, 180 yes.. but 190 no..
So i found 3 songs between 180 and 190 that wasent in the dc play list (pasted in notepad)....
and it was standard text.... so i unchecked the id3v2 tag...
dont use it anyway... and then i got 1660 in the dc playlist...

*Edit *
Hehe... dont work 2 late...;p
remove this line 4 in OnTimer
curUser:SendData(Setup.Name, "Winamp is " ..status.. "ed") return 1
Title:
Post by: Jitway on 05 September, 2005, 21:06:16
Great script Madman. Love it!
Title:
Post by: GrinSlaW on 07 September, 2005, 23:31:53
hi

a little silly question how can users lisen to the songs ? should they connect trough winamp to the hub adress or something ?

hope you understand me  :rolleyes:


cheers
Title:
Post by: bastya_elvtars on 07 September, 2005, 23:36:53
Usually they click this link:

hostname-of-shoutcast-server.yourdomain.org:port

port is 8000 by default as far as I can recall.
Title:
Post by: GrinSlaW on 08 September, 2005, 00:24:19
oki tnx  :D

cheers
Title: lan problem!!
Post by: jaggudada on 04 October, 2005, 22:21:55
ive set up everthing as said and have got it to work...

the problem i can tseem to sort out is lan config :(

I got all the script etc setup  + shoutcast broadcast plugin on same comp (eg.192.168.X.X) as hub. all working fine ..

But i need the broadcast from winamp to reach my shoutcast server (192.168.X.X)which is on other comp on lan . I want it set his way because of cpu usage.

Anyway i have opened ports in router  as well as local win firewall  with exceptions and everthing still no sucess.. any suggestions ???

comps are networked thru router which is also modem !!

THIs SCRIPT IS AWESOME :)
Title:
Post by: bastya_elvtars on 05 October, 2005, 00:11:09
QuoteOriginally posted by jaggudada
ive set up everthing as said and have got it to work...

the problem i can tseem to sort out is lan config :(

I got all the script etc setup  + shoutcast broadcast plugin on same comp (eg.192.168.X.X) as hub. all working fine ..

But i need the broadcast from winamp to reach my shoutcast server (192.168.X.X)which is on other comp on lan . I want it set his way because of cpu usage.

You need to enable portforward to the 8000 port of your SC server box. Also, I am afraid this won't work with the server on another machine.

Oh, and DISABLE windows firewall.
Title:
Post by: Madman on 05 October, 2005, 00:39:01
Note that this is a WinamScript, so it Does not support Shoutcast...  if i rember correct there is a ShoutChast script.. dont kno if it's lua5 yet tho...
And yes... the script can ONLY get songs if wiamp is run on local machine...
Title:
Post by: bastya_elvtars on 05 October, 2005, 00:44:00
QuoteOriginally posted by madman
Note that this is a WinamScript, so it Does not support Shoutcast...  if i rember correct there is a ShoutChast script.. dont kno if it's lua5 yet tho...
And yes... the script can ONLY get songs if wiamp is run on local machine...

Oh, this only gets the playlist then? I mixed something up then. Anyway, I gave some basic help related to SC.
Title: thanks..problem sorted
Post by: jaggudada on 06 October, 2005, 20:30:52
thanks bastya and mad man awesome script.. checked settings again..  and found out it was my second firewall blocking it  so had to maually configure  the port settings again in second firewall.. I had already set it up in xp. to let in the broadcast for winamp.


Yeh what i did was install all the scripts  winamp etc on comp with hub as said..but had winamp withe the shoutcast  broadcast plugin setup in winamp. so what winamp is doing is sending the songs to my other comp on lan(which has shoutcast server)... But it was not reaching the other comp on lan due to 2nd firewall..which is fixed now.. i didnt want the shoutcast server  to be on same comp as load on cpu.

 so effectively  now first comp is doing all the main jobs and second comp is with  shoutcast server  allowing people to connect on  to stream on second comp

It does seem to work... but  listeners do get error syncing probs  now and then..even tho its  just a few users and  the speed is good

could it be because its routed thru lan etc ??

ps:thanks tazzie those mods u gave too were quite nice..i did took off a few unwanted commands tho..likeshuffle toggle etc..dont want too many  people pressing too many buttons..hehe
do come and check it out at

bollywood.no-ip.org
cheers
Title:
Post by: djike on 16 October, 2005, 05:00:52
Correct me if I?m wrong here...

Is it the possibility for a user to connect to the hub to play, and  listening to the music/mp3's playing on the hubcomputer?
If it is like this, we don?t get it to work..
Yes, we can start Winamp from the users client, play, pause & stop it..etc. But not a tone from the speakers  ?(

Or have I missunderstood the hole idea with the Winampscript...  :baby:
Title:
Post by: Madman on 16 October, 2005, 13:43:56
The idea with the script is to show what you are playing on your server.

I made it beacuse i had my winamp running on the hub server, and there for i couldnt do the  /w thing as everybody else.... so i made this script in stead.. the script gives you complete control over the winamp on the hub server. Unless you install Shotcast nobody eccept you will be able to hear what your winamp plays....
The idea for this script is to simply to replace the /w function in dc clietns with a more advanced thing... ;p
Title:
Post by: djike on 16 October, 2005, 22:28:40
Tnx for the answer Madman. Now I know why..."Oh the silence" :)

Anybody who knows a script that can help me out?
We want to let the users in the hub listen to the music playing on the hubserver.

This is maybe not the right place, but I give it a shot...
A script in which you can point to a specific url, by type it with a given cmd, such as for an example: +swenews for http://swenews.patrikweb.net/index.php.

/Dj
Title:
Post by: djike on 17 October, 2005, 02:08:11
Look at this one, maybe something...
 http://winamp.com/plugins/details.php?id=143259
Title: Re: WinampScript
Post by: Alexinno on 13 July, 2006, 14:32:30
Hello everybody!
Can someone tell me another link for clever_2_98.zip ?
Because this link http://www.jukkis.net/clever/clever_2_98.zip  is dead for me :(
Title: Re: WinampScript
Post by: Madman on 13 July, 2006, 15:28:15
http://www.thedestruction.org/filer/clever_2_98.zip

There you go
Title: Re: WinampScript
Post by: Alexinno on 13 July, 2006, 19:05:54
10q 10q :)
cool script .. by the way