Sans monter une véritable usine à gaz pour faire un son.... L'instruction ' Beep ' déclenche, comme son nom l'indique le Beep de Windows.
Salutations JJ
"jcp" a écrit dans le message de news:435a32da$0$27440$
Bonjour Je voudrais dans une maro declencher un son . Est ce possible ? cordialement jcp
jb
Private Declare Function PlaySound Lib "winmm.dll" _ Alias "PlaySoundA" (ByVal lpszName As String, _ ByVal hModule As Long, ByVal dwFlags As Long) As Long
Sub essai Call PlaySound("xxx.wav", 0&, &H1 Or &H20000) end sub
Private Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
Sub essai
Call PlaySound("xxx.wav", 0&, &H1 Or &H20000)
end sub
Private Declare Function PlaySound Lib "winmm.dll" _ Alias "PlaySoundA" (ByVal lpszName As String, _ ByVal hModule As Long, ByVal dwFlags As Long) As Long
Sub essai Call PlaySound("xxx.wav", 0&, &H1 Or &H20000) end sub