ToyBoi Posted July 14, 2008 Share Posted July 14, 2008 Hi how do i get autoit to play a wave or any music file when it finishes executing? Link to comment Share on other sites More sharing options...
DjDeep00 Posted July 14, 2008 Share Posted July 14, 2008 Is this the same person asking the same question here? Link to comment Share on other sites More sharing options...
NELyon Posted July 14, 2008 Share 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 Link to comment Share on other sites More sharing options...
ToyBoi Posted July 14, 2008 Author Share Posted July 14, 2008 Is this the same person asking the same question here?nope Link to comment Share on other sites More sharing options...
ToyBoi Posted July 14, 2008 Author Share 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? Link to comment Share on other sites More sharing options...
NELyon Posted July 14, 2008 Share Posted July 14, 2008 Check out FileInstall in the help file. muttley Link to comment Share on other sites More sharing options...
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