|
-
Mar 30th, 2000, 07:58 PM
#1
Thread Starter
New Member
I am creating a quiz and I wish to make the Internal speaker bleep when a button is pressed. Is there any way that I can do this?
-
Mar 30th, 2000, 08:00 PM
#2
Frenzied Member
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Mar 30th, 2000, 10:01 PM
#3
Fanatic Member
Yeah, the beep command works ok, but if you have a soundcard it will make the beep out of your external speakers.
Add a module and paste the following into it:
Public Declare Function MessageBeep Lib "user32" (ByVal wType As Long) As Long
Now call the beep with the following (from a button or something):
MessageBeep -1
The -1 value makes the internal speaker beep, whilst a +1 value (or just 1) makes the beep through a soundcard if you have one.
-
Mar 31st, 2000, 01:44 AM
#4
transcendental analytic
Is there anyone who know how to beep with different frequencies?
-
Mar 31st, 2000, 04:10 AM
#5
You mean like the QB play function?
-
Mar 31st, 2000, 05:15 AM
#6
transcendental analytic
Yeah, or more like the QB sound. Cool thing really
-
Mar 31st, 2000, 10:25 AM
#7
Hyperactive Member
-
Apr 1st, 2000, 01:55 AM
#8
Thread Starter
New Member
As you may have guessed I am very new at VB programming!
What is the Beep command and where do I insert it????
-
Apr 1st, 2000, 01:59 AM
#9
transcendental analytic
OH! We didn't tell you that, Insert it in the command button click event
-
Apr 1st, 2000, 05:06 PM
#10
Thread Starter
New Member
Thank U all very much! There is one other thing though....
Is there any way that I can produce different frequencies? can I have the whole code for this please? Is there also any way that I can string together a kind of melody using the internal speaker to mark the end of the quiz?
-
Apr 1st, 2000, 05:06 PM
#11
Thread Starter
New Member
Thank U all very much! There is one other thing though....
Is there any way that I can produce different frequencies? can I have the whole code for this please? Is there also any way that I can string together a kind of melody using the internal speaker to mark the end of the quiz?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|