ToyBoi Posted July 14, 2008 Posted July 14, 2008 Hi how do i get autoit to play a wave or any music file when it finishes executing?
DjDeep00 Posted July 14, 2008 Posted July 14, 2008 Is this the same person asking the same question here?
NELyon Posted July 14, 2008 Posted July 14, 2008 (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 July 14, 2008 by KentonBomb
ToyBoi Posted July 14, 2008 Author Posted July 14, 2008 Is this the same person asking the same question here?nope
ToyBoi Posted July 14, 2008 Author Posted July 14, 2008 _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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now