Jump to content

Recommended Posts

Posted

I have a .wav file (I think it's .wav, working from memory) that will play on occasion. I would like to be able to determine via scripting if that file is in use. Something like:

while not file_in_use(filename)
     sleep(1000)
wend

... something like that. Possible? Ideas for implementation?

Posted

I have a .wav file (I think it's .wav, working from memory) that will play on occasion. I would like to be able to determine via scripting if that file is in use. Something like:

while not file_in_use(filename)
     sleep(1000)
wend

... something like that. Possible? Ideas for implementation?

You can play a sound and let the script pause until the sound has ended with the following command.

SoundPlay ( "filename" , 1 )

Is this what you mean?

Go to This site for my best product!

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...