Hi,
See? AHK has SO many options to offer, I didn't even SEE them all yet!
-brotherS
Another taste, but no need to have a specific layer here : just pure plain script that natively handles any DLL call...
#Option Explicit
Const SND_NODEFAULT = &H2
FBSL_GetFileName( "Open WAV", "WAV Files(*.wav)|*.wav", 0 )
If FBSL_GetFileName <> "" Then
$apptype console
Color( 2, 14 )
? ".........WAVE FORM FILE PLAYER................................"
Apicall( "sndPlaySound", "winmm", FBSL_GetFileName, SND_NODEFAULT )
? ".............................................................."
End If
You can try it into my Fbsl Online Compiler to see the result