Ok then, I tried this from a while ago when i went to that site, and this is what i came up with.
and no surprises, but I cannot get it to work. it is simple, but well I hope it will get me started in loading random things from scripts.
any ideas how i can make this work?
I tried everything "I" can think of.
code:
function getaSound()
{
var whichsound=get_random();
var quote=new Array(2)
quote[0]="Chimes.WAV";
quote[1]="Ding.WAV";
}
function OnEvent_ChatWndCreated(ChatWnd)
{
var ChatWndContacts = ChatWnd.Contacts;
if(ChatWndContacts.Count == 1)
{
var e = new Enumerator(ChatWndContacts);
var Contact = e.item();
{
MsgPlus.DisplayToastContact(Messenger.MyName , "Has Just Opened A Window With" , Contact.Name , getaSound );
}
}
}