Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I 'ring' the PC's internal speaker?
Message
From
06/10/2005 13:00:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/10/2005 11:56:06
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01056765
Message ID:
01056836
Views:
25
Mike,
?? chr(7) works for me always. ANyway glad you have a way.
Cetin

>Thanks Kevin. That did it. I found that if I disabled my soundcard, ??CHR(7) works, however, your solution works regardless.
>
>Cetin, I tried what you suggested, but, it did not work for me.
>
>I appreciate both of your efforts.
>
>Mike
>
>
>
>>Try this:
>>
>>
>>FUNCTION Beep
>>LPARAMETERS nFrequency, nDuration
>>
>>  IF EMPTY(nFrequency)
>>    nFrequency = 1000
>>  ENDIF
>>
>>  IF EMPTY(nDuration)
>>    nDuration = 40
>>  ENDIF
>>	
>>  DECLARE Beep IN Win32API INTEGER dwFreq, INTEGER dwDuration
>>
>>  =Beep(nFrequency, nDuration)
>>	
>>RETURN
>>
>>
>>
>>>I am trying to make the internal PC speaker beep by issuing ?? CHR(7). It does not seem to work for me. My PC has a soundcard (or perhaps its built into the MB) but I don't have external speakers attached so I want to use the internal one.
>>>
>>>Does anyone know how to do this?
>>>
>>>Regards,
>>>
>>>Mike
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform