By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

Beeping every ten seconds

P: n/a

Hi

I want to loop have the computer beep every 10 seconds. How do I loop
set a delay and beep?

Thanks in advance
Jake

May 4 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> I want to loop have the computer beep every 10 seconds. How do I loop
set a delay and beep?


Use a timer in your form and program the OnTimer form event.

--
PBsoft di Gabriele Bertolucci
www.pbsoft.it
skype: pbsoftsolution
May 4 '06 #2

P: n/a
May be this will help!

Private Declare Function Beep Lib "kernel32" (ByVal Btone As Long,
ByVal Blength As Long) As Long
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As
Long)
Private Sub Main()
While (1)
Beep 1000, 500
Sleep 10000
Wend

End Sub

May 5 '06 #3

P: n/a
Br
ar********@gmail.com wrote:
May be this will help!

Private Declare Function Beep Lib "kernel32" (ByVal Btone As Long,
ByVal Blength As Long) As Long
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As
Long)
Private Sub Main()
While (1)
Beep 1000, 500
Sleep 10000
Wend

End Sub


Assuming you don't want anything else happening in the meantime. If you have
a form open put an event procedure on the Timer event to beep.

Why? Sounds pretty annoying:)

regards,

Br@dley
May 5 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.