Jump to content
Sign in to follow this  
Lee Bussy

Detect File in Use

Recommended Posts

Lee Bussy

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?

Share this post


Link to post
Share on other sites
Somebody Someware

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!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×