Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Timas
Novice


Joined: 05 Jan 2003
Posts: 39
Location: Netherlands

PostPosted: Tue Feb 24, 2004 9:34 pm   

zMUD-MP3 player & emailing
 
Hola,

Actually, I'd like that to be true.. I've been trying to figure out a way to grab the mp3 info from the actual files to display it while it plays but so far no result. I've considered instead of trying this with scripting (which probably aint possible) to write a plugin for it but I daresay I wont be able to do that due to my inexperience with coding, anyone tried this before? if so, did you come up with something I maybe overlooked? Closest I got to grabbing the info from the file was by grepping it I believe.

Second question I had was if anyone figured out a way to directly open a mail client from zmud without selecting it as the specific application. I've writen a thingie to make URL's clickable, e-mail addresses included, however, its done via the mailto:someone@somewhere.com link, which means it first opens my webclient before it starts my mail client.. Just as above, any ideas or ways to do this?

-Timbo
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Tue Feb 24, 2004 11:15 pm   
 
zMUD lets you use VBScript to program aliases (check out #MSS).

Several VBScript programmers have figured out how to extract ID3 info from an MP3 (check out http://www.iamsmo.com/site/aspmp3lister/aspmp3lister.htm )

Since the ASP code linked above is written in VBScript, and pretty well commented, you ought to be able to figure out how to do it without too much aspirin.

I'm sure if it's a problem someone (even me) could look at it again later, but I'm at work right now... supposedly.... working. Smile
Reply with quote
Timas
Novice


Joined: 05 Jan 2003
Posts: 39
Location: Netherlands

PostPosted: Wed Feb 25, 2004 8:12 am   
 
*cough* working.. wait, thats what I get paid to do, right? Sad to say I spend most my time playing with triggers and stuff in my notepad and reading these forums ;)

I'm looking at it, I'll hollar back if I can't figure it out but it looks pretty much do-able right now, something to keep me entertained on the busride to work.

Thanks Darker
Reply with quote
Timas
Novice


Joined: 05 Jan 2003
Posts: 39
Location: Netherlands

PostPosted: Thu Feb 26, 2004 9:24 pm   
 
Ok, here we go again.

No comprende. I took a look at that asp page and I can generally figure that part out.. next step would be to get zMUD to accept this code.. I can't get that part to work ;) Anyone around that has some examples of VB code being used within zMUD for scripting? Study this, I will.. but thats a bit hard without solid examples :p

If you find yourself on here sometime soon again Darker and feel awfully bored at work, enlighten me on how this would be done!

Thanks in advance
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Thu Feb 26, 2004 10:10 pm   
 
There's an example of zMUD script mixed with VBScript in the finished scripts forum - my ROD Directions script does it. I didn't recommend looking at that before because it's doing something completely different than you are, but it does incorporate vbscript, if you'd like to see it done.

For me to further check this out, I've got to wait for the weekend.
Reply with quote
Timas
Novice


Joined: 05 Jan 2003
Posts: 39
Location: Netherlands

PostPosted: Fri Feb 27, 2004 8:44 pm   
 
Darker, no workin. I copied and looked at your script and prolly mangled it very badly in combination with the ASP page, I'm lost however. Been trying this almost non stop and I'm missing the clue somewhere. zMUD now says I'm missing 'server' somewhere [xx(]

If you would be willing, do your magic and show me what it -should- look like Very Happy

Code:
#script {
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objMP3Directory = objFSO.GetFolder("E:test")
Set objMP3 = Server.CreateObject("ADODB.Stream")
objMP3.Type = 1
For Each MP3 in objMP3Directory.Files
strOutputSize = " & Round((MP3.Size * .000001), 2) & "
strOutputName = " & MP3.Name & "
strOutputArtist = " & MP3.Artist & "
strOutputAlbum = " & MP3.Album & "
strOutputYear = " & MP3.Year & "
strOutputComment = " & MP3.Comment & "
strOutputTrack = " & MP3.Track & "
strOutputGenre = " & MP3.Genre & "
objMP3.Close
Next
Set objMP3 = Nothing
Set objMP3Directory = Nothing
Set objFSO = Nothing}

#VAR MP3.name %mss( strOutputName)
#SAY @MP3.name
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Fri Feb 27, 2004 10:19 pm   
 
Yep, there are errors in there. I can't put a whole lot of time into debugging it right now, but you've got a good start.

It occured to me that we're missing a critical piece of info - what's currently playing.

That got me started thinking about how to get info right from the player.

So I eventually found the "AMIP" plugin for Winamp ( http://amip.tools-for.net/index.php?content=download ). I hope you're using Winamp 5. I am, so that's what my answer's based on...

AMIP has an option to output "now playing" song information to a text file for use with mail programs. We'll use that file idea, but with zMUD instead of a mail program.

You can specify what file to export info to. Then just have some alias or #alarm trigger in zMUD that opens the file, reads its, and stores the value in a variable. Poof. Usable right away.


I never answered your 2nd quesiton in this thread. With DDE you can call external applications, but I've never tried it with email. I'd probably just stick with the mailto: link myself.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net