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:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: How To Call Upon Random Files
Use the random function (in jscript) to get a number and use the if condition to play a different file.

This of course works only if you know the file names. Or you could do search the directory and store all its files in an array and then generate a random number (using jscript) and use it as the subscript of the array giving you a random file to everytime :)

This post was edited on 07-22-2006 at 10:59 AM by John Anderton.
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
07-22-2006 10:56 AM
Profile E-Mail PM Web 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