Jump to content
Sign in to follow this  

How do I play a sound

Recommended Posts

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

If @error Then


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] )


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


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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...