Author |
Topic  |
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 26 October 2002 : 20:09:39
|
ah ha!!! it does not work if there is no ID2/ID3 tag and mine is more customizable!!!! neeener, neeener, neeener 
|
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 26 October 2002 : 20:10:21
|
hey my two previous posts got reversed???? server time must have just been adjusted....
UPDATE: if this thread looks confusing it is because the posts got jumbled, time must have gotten out of synch for a bit. |
|
Edited by - dayve on 26 October 2002 20:15:57 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 26 October 2002 : 20:57:32
|
quote: Originally posted by ROB
Just for reference, I use www.audio-tracker.com , which does the same thing, but they serve the images. It's all free, so far, and there are plug-ins for both Winamp 2 and 3.
Looks like this: www.audio-tracker.com/song.php/BigBlue" border="0">
day late and dollar short.... anyway I had fun creating my own ;) I am going to check out that link you posted now... thanks. |
|
 |
|
al_iguana
Junior Member
 
138 Posts |
Posted - 27 October 2002 : 17:32:01
|
taken from the Winamp SDK - this will get the currently playing song title:
char this_title[2048],*p;
GetWindowText(hwndWinamp,this_title,sizeof(this_title));
p = this_title+strlen(this_title)-8;
while (p >= this_title)
{
if (!strnicmp(p,"- Winamp",8)) break;
p--;
}
if (p >= this_title) p--;
while (p >= this_title && *p == ' ') p--;
*++p=0;
exactly how you could use that with Snitz to grab the title is a different matter.... 
|
----
Don't Dream It ~ Be It http://www.peppermintiguana.co.uk/cymrugothic/ |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 27 October 2002 : 18:48:52
|
yeah, that's for the Winamp Development Kit, not much use unless you're building Winamp components. I think I've done just fine with what I've come up with. |
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 27 October 2002 : 21:31:59
|
I tried the Audio-Tracker plugin, but it never would send the information automatically using the Winamp plugin, I had to do it manually.
What I ended up using was the plugin available here: http://www.neuro-tech.net/infosender.html
and then directed the plugin to a file on my website with the following contents:
<%
song = Request.QueryString("song")
path = Request.ServerVariables("PATH_TRANSLATED")
path = Replace (path, "\songinfo.asp", "\songinfo2.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile(path, True)
part1 = "<"
part2 = "%"
part3 = ">"
style = part1 & part2 & vbNewLine
style = style & "Dim strSong" & vbNewLine
style = style & "strSong = """ & song & """" & vbNewLine
style = style & part2 & part3 & vbNewLine
a.WriteLine(style)
a.Close
set a=nothing
set fs=nothing
%> This uses the FSO to create a file named songinfo2.asp that I use as an include in another file (much like the one used for the Project Dolphin images) to output the info.
here is what it looks like:

I'm thinking about having the information inserted into a Database so that time tracking can be used so that it won't show I am listening to a song when I am not listening to anything. (like if the current song was last submitted over 5 minutes ago or so) It would be much safer as well, because someone could potentially cause some problems by using malicious code and then executing it once the file had been made by the file above. |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 27 October 2002 : 21:54:07
|
hey Richard, the component I am using here is truly dynamic, meaning if you are not playing anything, the output file gets updated (blanked out)
http://www.deskmod.com/?state=view&skin_id=14591
I like the historical database idea, I was considering doing something like that as well. I was going to make it myself, but I'm lazy so then I found this one as well which is what I will be using more than likely:
http://www.deskmod.com/?show=showskin&skin_id=15481 |
|
Edited by - dayve on 27 October 2002 21:55:41 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 27 October 2002 : 22:06:55
|
well, the second link I gave you is kind of useless to me, in order to record the history you have to keep the history window open  |
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 16 December 2002 : 07:58:56
|
found another site like http://www.audio-tracker.com/ today:
the image looks like this: (click image to go to their site)

you can even download the source code from their homepage and run your own service for others, allowing them to create an account on your server. (it does require PHP and MySQL though)
They use the plugin available here: http://www.oddsock.org/tools/dosomething/
That plugin is very configurable and gives you access to a lot of tags. |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 16 December 2002 : 10:19:31
|
how do you render it to an image? |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 16 December 2002 : 16:17:05
|
Using .NET GDI+ Commands |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
Topic  |
|