Page 1 of 1
System Get System Beep Sound
#1
System
Posted 01 February 2008 - 09:37 AM
Hi Everyone,
I need to know whether it is possible to get the system beep sound using any API or any kinda code using VB. A beep sound can be due to some error in system or application running in the system. Beep is a function which is used to make beep sound in the system. But i need something like getBeep or Beep -> GetSystemSound(). I am serchin for it. But not able to succeed. I someone know wnything abt this, Please lemme know.
I need to know whether it is possible to get the system beep sound using any API or any kinda code using VB. A beep sound can be due to some error in system or application running in the system. Beep is a function which is used to make beep sound in the system. But i need something like getBeep or Beep -> GetSystemSound(). I am serchin for it. But not able to succeed. I someone know wnything abt this, Please lemme know.
#2
Re: System
Posted 01 February 2008 - 10:38 AM
You can get access to the Windows API internal beep through kernel32.dll and using a windows API call. The following document shows you how to do this (it is PDF). Once you have defined the API call in VB6 you can then call it as any other function (passing it the frequency and the duration).
Calling the Windows API beep using VB6
Enjoy!
"At DIC we be beeping mofo code ninjas!"
Calling the Windows API beep using VB6
Enjoy!
"At DIC we be beeping mofo code ninjas!"
#3
Re: System
Posted 01 February 2008 - 11:37 AM
Martyr2, on 1 Feb, 2008 - 11:38 AM, said:
You can get access to the Windows API internal beep through kernel32.dll and using a windows API call. The following document shows you how to do this (it is PDF). Once you have defined the API call in VB6 you can then call it as any other function (passing it the frequency and the duration).
Calling the Windows API beep using VB6
Enjoy!
"At DIC we be beeping mofo code ninjas!"
Calling the Windows API beep using VB6
Enjoy!
"At DIC we be beeping mofo code ninjas!"
Hi Martin,
Thank You Very much for the reply. But I need the Correct Windows API [Whatever the DLL Used], to get the Internal Beep. Please tell me about the function InternalBeep.
#4
Re: System
Posted 01 February 2008 - 11:40 AM
There is also a snippet that I submitted, it is under VB.NET but it should work for VB6, as well. It used the WIN API.
http://www.dreaminco.../snippet517.htm
http://www.dreaminco.../snippet517.htm
Page 1 of 1

Ask A New Question
Reply





MultiQuote





|