
brownhead
Member
Jan 6, 2006, 5:05 PM
Post #1 of 5
(1393 views)
Shortcut
|
|
How to make computer beep without speakers, and need help with it in VB
|
Can't Post
|
|
I'm trying to figure out how to make the computer tower beep. I was into DOS before VB and figured out how to do it in the Command Prompt, and heres how: - Open Command Prompt (Start Menu->Run then type in CMD and hit OK)
- Make sure the prompt is your active window than press Ctrl+g (At the same time)
- The current command line should now read: ^G
- Press Enter
There ya go, you computer should have beeped, without the speakers. Now I'm trying to replicate that using VB. The Character Code of the character used to make the computer beep in DOS is 7 (Decimal) and 07 (Notice a similarity there ) and for no reason, heres the binary 0000 0111 (I'll admit, I don't think anybodies gonna want or need the binary, but there ya go, just in case). BTW, I don't want to create a Batch file then run it, I wanna try to find out how to do it completly in VB. If anybody can figure out how to do it, couldya post here, or PM me. I think it'll be a pretty short code. G'day all, and thanks for the help.
------------------------------------- [img]http://i25.photobucket.com/albums/c51/70k0/BHU.png[/img]
(This post was edited by brownhead on Jan 6, 2006, 5:11 PM)
|