timswf Posted August 11, 2005 Report Share Posted August 11, 2005 Hi.. this is my first post here so please be gentle with me - I've searched for an answer to this but not found one.. this macro to play a sequence of wav files from a folder hits trouble because it won't wait until longer files have finished playing until the next step.. even though "wait for wav file to finish" is checked in the macexp player.. All advise welcome.. thank you rgds tim <LOGFILE:YY:><TVAR2:01:01:><DOFILE:01:NN:c:\play\>><ATTRIB:NFNFNFNF:c:\play\playlog.html><LAUNCHYES3:0:0012notepad<LAUNCH:notepad.exe><TEXTTYPE:<HTML> <HEAD> <TITLE>Playout Log</TITLE> </HEAD> <BODY> ><REP3:07:000001:000001:0001:0:01:C:\play><TEXTTYPE:%T1%; ><DT: hh:mm:ss dd MMMM yyyy F:00:1:><TEXTTYPE:<BR><ENTER>><TBOX4:T:3:CenterCenter000278000200:000:pilkington><WAV1:C:\dtmf.wav><TBCLOSE:pilkington><TDELAY:1><TBOX4:T:3:CenterCenter000278000200:000:Playing%T1%><WAV1:C:\play\%T1%><WAITWLF2:000010:000000:wm><TBCLOSE:Playing><DOFILE:08:NN:c:\play\%T1%>><ENDREP><ACTIVATE2:Notepad><TEXTTYPE:</BODY> </HTML> <ALT>fa><TEXTTYPE:playlog.html<ENTER>><TEXTTYPE:<ALT>s><WCLS:"CURRENT"> Quote Link to comment Share on other sites More sharing options...
kevin Posted August 11, 2005 Report Share Posted August 11, 2005 How long are your 'longer' wav files? I tried your macro using several wav files and it works fine here. But, I do not have any wav files that are longer than a few words. When Macro Express plays a wav file it sends a message to Windows asking Windows to play it. The message contains flags to tell Windows to wait until the sound file has finished playing. If I remember correctly, there is a message that can be sent to interupt the playing of a sound file. If the wav file you are playing is long enough, it could be that another process in Windows is sending a message to stop playing the current sound file and play a new one. This is just a guess. Quote Link to comment Share on other sites More sharing options...
timswf Posted August 11, 2005 Author Report Share Posted August 11, 2005 hi.. sound slike you could be onto something here.. the files are music tracks.. so around 3 mins.. same happens using the macexp player or windows media.. rgds tim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.