Information générale
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
>>Hi all
>>I want to make a programm that read phone numbers from a DBF and call to each of them and when connected play a sound file.
>>I can dialing a number with mscomm but i dont know how play a sound file and ...
>>Can anyone help me?
>>Thanks
>
>For what i understand your problem is not with MSCOMM, but how to play a sound in the system speaker, isn't it?
>
>If that is the question, you can do this:
>
>= playsound("C:\windows\media\chimes.wav")
>
>function playsound
> lparameters FileToPlay
>
> local mregister, mwave, mflag, mcall
>
> SET LIBRARY TO "FOXTOOLS.FLL"
> MREGISTER = REGFN("SndPlaySound","CI","I","mmsystem")
> MFLAG=1
> =CALLFN(MREGISTER,FileToPlay,MFLAG)
>
>return .t.
>
>
>You must have the file 'FOXTOOLS.FLL' visible, or in the program path (this file comes with all versions of VFP since VFP 3.0).
>You must also have visible a file called 'DDEREG.EXE', but i don't know if this file comes qith one of VFP versions. If you need it, send me your email and i send you a copy of this.
>
>Joaquim
No , i dont want to play a sound for myself. i want to play sound ( for exampla a news) for person that i call to him.
i want to play this sound file throgh modem .
Thanks
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement