Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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 !

Posted

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?
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...