[Autoit]Music Function.

12/21/2013 19:57 Siktor#1
So hello, dis is my second question,

My friend asked me how to add audio (music) in autoit, and I really do not know how.

Any support?


Quote:
Autoit
12/21/2013 20:19 YatoDev#2
#include <Sound.au3>
FileInstall
_SoundPlay()
12/21/2013 20:22 Siktor#3
Quote:
Originally Posted by »FlutterShy™ View Post
#include <Sound.au3>
FileInstall
_SoundPlay()
I just type this, and add the song in the same folder?
12/21/2013 20:44 YatoDev#4
no

Code:
#include <Sound.au3>
$handle = _SoundOpen(@ScriptDir & "\yoursound.mp3")
_SoundPlay($handle)
please learn autoit
12/21/2013 21:01 Siktor#5
Quote:
Originally Posted by »FlutterShy™ View Post
no

Code:
#include <Sound.au3>
$handle = _SoundOpen(@ScriptDir & "\yoursound.mp3")
_SoundPlay($handle)
please learn autoit
Hmmm... Thanks I quess.

Quote:
please learn autoit
-->

Quote:
and it is not for me, IDC about it ;)
12/22/2013 01:44 alpines#6
If you don't care about it then the person who cares about it should ask it.
12/22/2013 02:02 LuchoTrolling#7
Use FileInstall for Install .mp3 in Temp or C:/.

And use :
SoundPlay("C:/Music.mp3")

And FileDelate (Delate Music) for not to leave garbage on the PC.

Example :

PHP Code:
FileInstall("C:\Users\xluiscolx\HardPorn\xD\Music.mp3""C:\Music.mp3")
SoundPlay("C:/Music.mp3"
And add func close Button or Close the Form

PHP Code:
FileDelete("C:\Music.mp3"


#include <Sound.au3> No Required
12/22/2013 11:30 alpines#8
Actually in some cases the include Sound.au3 would be better because it offers you more options than just play a sound.