How do i get my other function to open that command? as in from the
code:
MsgPlus.DisplayToastContact(Messenger.MyName , "Has Just Opened A Window With" , Contact.Name , sound[whichsound]);
I am trying this and it is not working.? is it wrong?
--EDIT--
ok I have been playing around a bit more and after pulling some old scripts apart, i managed to find a few with different out lays on how to trigger from a different function.
can you let me know what you thinka nd what ineed to change to get this to work.
code:
function getaSound(){
var whichsound=get_random();
var sound=new Array(2)
sound[0]="CHIMES.WAV";
sound[1]="LeaveMeAlone.mp3";
return sound[whichsound];
}
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();
}
}
}
Really do need help.