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:
Pai
Full Member
***

w00t !

Posts: 203
Reputation: 2
– / Male / –
Joined: Sep 2003
RE: How To Call Upon Random Files
what's get_random() anyway ? to generate a random number you have to use Math.Random() ... unless you created a function to do this and named it get_random(), but as you didn't post them I have to ask :p

then, you don't use sound[whichsound] again in the toast, you first call the function and assign the result to a variable, which already contains the filename. Something like this:

code:
var fileName = getaSound();
MsgPlus.DisplayToastContact(Messenger.MyName , "Has Just Opened A Window With" , Contact.Name , fileName);

Remember, the files must be  in your script's directory. If you have them in a subdirectory like "sounds", you have to use:
code:
MsgPlus.DisplayToastContact(Messenger.MyName , "Has Just Opened A Window With" , Contact.Name , "sounds\"+fileName);
07-24-2006 11:25 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