jhocott Posted August 18, 2004 Share Posted August 18, 2004 I'm a newbie to AutoItv3. Managed to get several scripts working but am stumped on this one. The purpose of the script is a simple timer that plays a midi file after counting down a number of seconds. Songs are typically 2:15 - 3:+ minutes long. I want to Splash a message when the song ends. I am having to choose between a fixed sleep or closing the media player window. I have several versions of the script, none are completely satisfactory. Is there a way I can detect the end of a song ,media player remains active but does not close. Thanks Jay Jay Link to comment Share on other sites More sharing options...
jhocott Posted August 18, 2004 Author Share Posted August 18, 2004 does the command SoundPlay() not work for the midi file? Lar. <{POST_SNAPBACK}>Yes it does, despite the help text state .wav & .mp3 only. However I still have the same problem, i.e., how to abort the song playing? Jay Link to comment Share on other sites More sharing options...
this-is-me Posted August 18, 2004 Share Posted August 18, 2004 Soundplay("") aborts Who else would I be? Link to comment Share on other sites More sharing options...
konan Posted August 18, 2004 Share Posted August 18, 2004 Soundplay("") aborts <{POST_SNAPBACK}>Is it right? I can't abort the soundplay. Can you give a full example of the function "Soundplay()" Thank you ! Link to comment Share on other sites More sharing options...
this-is-me Posted August 18, 2004 Share Posted August 18, 2004 SoundPlay("file.wav"); play file.wav Sleep(2000); wait 2 seconds SoundPlay(""); if file.wav is not finished playing in 2 seconds, stop playing anyway Who else would I be? Link to comment Share on other sites More sharing options...
jhocott Posted August 18, 2004 Author Share Posted August 18, 2004 Is it right? I can't abort the soundplay. Can you give a full example of the function "Soundplay()" Thank you ! <{POST_SNAPBACK}>Excellent! This solves my problem. Thanks Jay Link to comment Share on other sites More sharing options...
konan Posted August 18, 2004 Share Posted August 18, 2004 ok thank you! I'm sorry because i used "soundplay()aborts" haha Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now