| Mirage Source http://miragesource.net/forums/ |
|
| Eliminating the bleep http://miragesource.net/forums/viewtopic.php?f=207&t=3815 |
Page 1 of 1 |
| Author: | Xlithan [ Tue Jun 10, 2008 4:36 pm ] |
| Post subject: | Eliminating the bleep |
I have a text-box on the game screen, you type into it, press enter, and wa-la! Your text appears on the chat box. Annoying thing is, every time you press enter... "BLEEP!" How do I stop the bleep sound from playing every time I press the enter button on the text-box? Thanks. |
|
| Author: | Spodi [ Tue Jun 10, 2008 5:08 pm ] |
| Post subject: | Re: Eliminating the bleep |
I believe you just have to set the key identifier parameter (keycode or whatever the hell the name of it is) for the textbox's KeyDown (or is it KeyPress) to 0 at the end of the method. |
|
| Author: | Robin [ Tue Jun 10, 2008 5:44 pm ] |
| Post subject: | Re: Eliminating the bleep |
When you clear the textbox in HandleKeyPresses or w/e, setfocus to picScreen. |
|
| Author: | Lea [ Tue Jun 10, 2008 7:59 pm ] |
| Post subject: | Re: Eliminating the bleep |
in ***_KeyDown Just before End Sub Add "KeyCode = 0" or whatever Just like spodi said. |
|
| Author: | Robin [ Tue Jun 10, 2008 8:01 pm ] |
| Post subject: | Re: Eliminating the bleep |
| Author: | Lea [ Tue Jun 10, 2008 8:02 pm ] |
| Post subject: | Re: Eliminating the bleep |
<3 |
|
| Author: | Xlithan [ Wed Jun 11, 2008 1:17 am ] |
| Post subject: | Re: Eliminating the bleep |
Code: Private Sub txtCommand_KeyPress(KeyAscii As Integer) Call HandleKeypresses(KeyAscii) If KeyAscii = vbKeyReturn Then KeyAscii = 0 End If End Sub worked nicely, thanks. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|