Sign in to follow this  
Followers 0
ToyBoi

Play wave file

6 posts in this topic

Hi how do i get autoit to play a wave or any music file when it finishes executing?

Share this post


Link to post
Share on other sites



Is this the same person asking the same question here?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

_SoundOpen, _SoundPlay, Etc...

EDIT: If it's always gonna be a .wav file, you can call sndPlaySound directly from winmm.dll.

Global Const $SND_SYNC =0x0
Global Const $SND_ASYNC = 0x1
DLLCall("winmm.dll", "sndPlaySound", "C:\Path\To\Wav\File", $SND_SYNC)

Use $SND_ASYNC in place of $SND_SYNC if you want your script to continue while the sound is playing.

Edited by KentonBomb

Share this post


Link to post
Share on other sites

Is this the same person asking the same question here?

nope

Share this post


Link to post
Share on other sites

_SoundOpen, _SoundPlay, Etc...

EDIT: If it's always gonna be a .wav file, you can call sndPlaySound directly from winmm.dll.

Global Const $SND_SYNC =0x0
Global Const $SND_ASYNC = 0x1
DLLCall("winmm.dll", "sndPlaySound", "C:\Path\To\Wav\File", $SND_SYNC)

Use $SND_ASYNC in place of $SND_SYNC if you want your script to continue while the sound is playing.

hi thanks for the help, now when i compile this script will the music file be included in the exe? how can make sure that the music is in the exe?

Share this post


Link to post
Share on other sites

Check out FileInstall in the help file.

muttley

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