What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How To Call Upon Random Files

How To Call Upon Random Files
Author: Message:
Vexor
Full Member
***

Avatar
Pure Capital Gain

Posts: 162
Reputation: 7
42 / Male / –
Joined: Jan 2006
O.P. RE: How To Call Upon Random Files
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.

This post was edited on 07-24-2006 at 11:24 AM by Vexor.
[Testing A Bunch Of Different Betas']
[Image: DaFuca.png]
07-24-2006 11:03 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How To Call Upon Random Files - by Vexor on 07-22-2006 at 09:45 AM
RE: How To Call Upon Random Files - by John Anderton on 07-22-2006 at 10:56 AM
RE: How To Call Upon Random Files - by Vexor on 07-22-2006 at 06:10 PM
RE: How To Call Upon Random Files - by -dt- on 07-22-2006 at 06:21 PM
RE: How To Call Upon Random Files - by Hengy on 07-22-2006 at 08:11 PM
RE: How To Call Upon Random Files - by Vexor on 07-23-2006 at 12:02 AM
RE: How To Call Upon Random Files - by cloudhunter on 07-23-2006 at 12:04 AM
RE: How To Call Upon Random Files - by Vexor on 07-24-2006 at 08:42 AM
RE: How To Call Upon Random Files - by Veggie on 07-24-2006 at 10:07 AM
RE: How To Call Upon Random Files - by Vexor on 07-24-2006 at 10:35 AM
RE: RE: How To Call Upon Random Files - by foaly on 07-24-2006 at 10:39 AM
RE: How To Call Upon Random Files - by Vexor on 07-24-2006 at 11:03 AM
RE: How To Call Upon Random Files - by Pai on 07-24-2006 at 11:25 AM
RE: How To Call Upon Random Files - by Vexor on 07-24-2006 at 11:38 AM


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