Sign in to follow this  
Followers 0
lolp1

How do I play a sound

4 posts in this topic

I Have a script, and I want to have it like

If @error Then

(Playsoundhere)

I wan't to know how to play a sound ith auto-it:)

Share this post


Link to post
Share on other sites



From the help file:

SoundPlay Play a sound file.

SoundPlay ( "filename" [, wait] )

Parameters

filename Name of the file to be played (typically a WAV or MP3) wait [optional] This flag determines if the script should wait for the sound to finish before continuing:

1 = wait until sound has finished

0 = continue script while sound is playing (default)

Return Value

None. (Always returns 1 regardless of success.)

Remarks

Terminating the script will stop the sound (if it is still playing).

Share this post


Link to post
Share on other sites

Thanks, I just used the wrong search terms for it.

Share this post


Link to post
Share on other sites

I like Beep() for errors.

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  
Followers 0