Jump to content

Recommended Posts

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
Posted

_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?

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
×
×
  • Create New...