Mirage Source
Eliminating the bleep - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Help Wanted (https://mirage-engine.uk/forums/forumdisplay.php?fid=50)
+---- Thread: Eliminating the bleep (/showthread.php?tid=1821)



Eliminating the bleep - Xlithan - 10-06-2008

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.


Re: Eliminating the bleep - Spodi - 10-06-2008

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.


Re: Eliminating the bleep - Robin - 10-06-2008

When you clear the textbox in HandleKeyPresses or w/e, setfocus to picScreen.


Re: Eliminating the bleep - Robin - 10-06-2008

:evil:


Re: Eliminating the bleep - Xlithan - 11-06-2008

Code:
Private Sub txtCommand_KeyPress(KeyAscii As Integer)
    Call HandleKeypresses(KeyAscii)
    If KeyAscii = vbKeyReturn Then
        KeyAscii = 0
    End If
End Sub

worked nicely, thanks.