Guest Mikelijo Report post Posted 04/20/2005 01:57 PM I have a simple questions. how to play random wav files? example: my named wav files is: 1.wav, 2.wav etc. Thanks Share this post Link to post
SupportTeam Report post Posted 04/20/2005 01:59 PM You will need to write a VBScript which selects one of the files randomly and plays it... Share this post Link to post
Guest Mikelijo Report post Posted 04/21/2005 09:13 AM Can write this VB code? Share this post Link to post
SupportTeam Report post Posted 04/21/2005 09:47 PM You can use the Evaluate Expression module's Rnd statement: From: http://www.voiceguide.com/vghelp/html/modEvalExpr.htm, Rnd entry : To produce random integers in a given range, use this formula: Int((upperbound - lowerbound + 1) * Rnd + lowerbound) Share this post Link to post
Guest Mikelijo Report post Posted 04/22/2005 10:34 AM Where put Randomize() function? always random number is 8! Im write evaluate expression: Int((10 - 1 + 1) * Rnd + 1) because scale are 1-10 Please help!!! Share this post Link to post
SupportTeam Report post Posted 04/23/2005 08:32 AM Looks like the better aproach would be to do this from VBSCript. For some examples see: http://msdn.microsoft.com/library/default....tmRandomize.asp http://msdn.microsoft.com/library/en-us/sc...ml/vsfctrnd.asp Share this post Link to post
Guest Mikelijo Report post Posted 04/25/2005 10:10 AM How to play wav file using VB script? Share this post Link to post
SupportTeam Report post Posted 04/25/2005 08:41 PM http://www.voiceguide.com/vghelp/html/com_..._Play_Start.htm Share this post Link to post