Jump to content
Sign in to follow this  
autoitman1

Soundplay() filepath?

Recommended Posts

autoitman1

If you do not specify a filepath for this and just the name of the .wav...like...

soundplay("sound1.wav")

does it just look for the .wav in whatever directory the script or built application is in?

thank you

Share this post


Link to post
Share on other sites
AdmiralAlkex

I would assume it looks in the working directory. Why are you asking? If you want to access a file from the scripts directory you would normally use the @ScriptDir macro.

soundplay(@ScriptDir & "\sound1.wav")

Share this post


Link to post
Share on other sites
autoitman1

sorry, what exactly is a working directory?

thank you :)

Share this post


Link to post
Share on other sites
autoitman1

i kind of get it lol, will do more reading later :)

thanks alkex

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.