"Konrad" <david_konrad@hotmail.com> skrev i en meddelelse
news:41e4f819$0$80192$14726298@news.sunsite.dk...
> "Michael Vilhelmsen"
> <Michael.Vilhelmsen.PLEASEREMOVE@Microcom.PLEASEREMOVE.Dk> wrote in
> message
> news:mn.62857d51cc5e24a0.11460@Microcom.PLEASEREMOVE.Dk...
>> Hej
>>
>> I Turbo Pascal fandtes der en kommando til at lave en bip lyd i PC'ens
> højtaler.
>> Den hed vistnok SOUND.
>
> Bip hedder vistnok beep på engelsk - prøv den
Hvis du mener PC´ens interne højttalere så skal du bruge:
windows.Beep(1000,100);
Fra help:
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);
Parameters
dwFreq
Windows NT:
Specifies the frequency, in hertz, of the sound. This parameter must be in
the range 37 through 32,767 (0x25 through 0x7FFF).
Windows 95:
The parameter is ignored.
dwDuration
Windows NT:
Specifies the duration, in milliseconds, of the sound.
Windows 95:
The parameter is ignored.
Mvh
HK