Mirage Source
something easy, but i hink i am too stupid lol ^^ - 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: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: something easy, but i hink i am too stupid lol ^^ (/showthread.php?tid=226)



something easy, but i hink i am too stupid lol ^^ - Gilgamesch - 08-08-2006

yeah, as i said before its easy..i think^^:

so, when you press enter or attack someone, or cast a spell, there is always this windows sound: "ding"


how do i remove that :O, i wasnt able to find anythi ng related to that :S


thanks!


- Gilgamesch - 09-10-2006

Dave Wrote:
Code:
Private Sub txtName_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        Call picConnect_Click
        KeyAscii = 0  'The Magic line...
    End If
End Sub


sry to bump up this topic, but i forgot to read it xD

uhm... keyascii = 0 lets the sound play? but, what about attacking, i didnt find anything related to attacking or pressing enter or something esle


- Reece - 09-10-2006

Sorry - Didnt read the topic right xD


- Gilgamesch - 09-10-2006

Dave Wrote:If KeyAscii = 13 Then 'This means you press enter


Setting KeyAscii = 0 makes it NOT beep.

so i have to set all KeyAscii to = 0 and it doesnt beep?


- Gilgamesch - 11-10-2006

Dave Wrote:yeah


uhm..sure that if i change all the keyascii = something, to keyascii = 0 the game will still work properly?


- Gilgamesch - 11-10-2006

Dave Wrote:only change it in _KeyPress events, and only after you use it.

ahh, so in ever: _KeyPress sub i put keyascii = 0 ?