What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Code needed for hiding sound alert!

Code needed for hiding sound alert!
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Code needed for hiding sound alert!
Well, in theory you could store all sound IDs and names you can find in the .dat's in that folder, but this can take a lot of time of course. You could make it load the sounds into a global array on script start-up, which would have a structure like:
code:
var SoundsArray = new Array();
SoundsArray["Murray - Evil Laugh"] = "#4F004323E60";
SoundsArray["..."] = "#...";
And then, everytime you receive a message, you first check if the message is a sound name ("Murray - Evil Laugh") or a sound ID (#4F004323E60). In the first case, you'll have to send "/sound "+SoundArray[NAME], in the second case you can simply send the ID straight away: "/sound "+ID

But as I already said, the loading can take a long while when you have to do this every time the script starts. Maybe more interesting would be to have a command which loads the sounds and saves a text file or XML file with the sounds in it. Then, you can load that XML file instead at script start-up and thus you'd only need to load the sounds when you really ask for it. :P

I think I'll leave the rest to your inspiration and creativity. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-13-2007 07:51 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Code needed for hiding sound alert! - by Jumpfreakske on 12-13-2007 at 05:36 PM
RE: Code needed for hiding sound alert! - by Jesus on 12-13-2007 at 06:47 PM
RE: RE: Code needed for hiding sound alert! - by Jumpfreakske on 12-13-2007 at 07:32 PM
RE: Code needed for hiding sound alert! - by Matti on 12-13-2007 at 07:51 PM
RE: Code needed for hiding sound alert! - by Jumpfreakske on 12-13-2007 at 08:08 PM
RE: Code needed for hiding sound alert! - by CookieRevised on 12-13-2007 at 09:05 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On