Mirage Source
Hot keys - 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: Hot keys (/showthread.php?tid=2064)



Hot keys - Doomy - 07-09-2008

where would i find the code so if i press lets say f1 a window will open
on the game client
also anyone know
what it is to specify an npc number and another player ?

is it npc.number?


Re: Hot keys - Nean - 07-09-2008

I'm not completely sure, but try studying the Keypress sub.
Code:
Private Sub txtChat_KeyPress(KeyAscii As Integer)
    If KeyAscii = vbKeyReturn Then
        If LenB(Trim$(txtChat.Text)) > 0 Then
            Call GlobalMsg(txtChat.Text, White)
            Call TextAdd(frmServer.txtText, "Server: " & txtChat.Text, True)
            txtChat.Text = vbNullString
        End If
    End If
End Sub

That runs when enter is pushed. Uhm. Hope that helps any.


Re: Hot keys - Doomy - 07-09-2008

thx i didnt know what the sub name was i was searching the whole source
i must have skiped over it


Re: Hot keys - Doomy - 07-09-2008

If KeyAscii = vbKeyReturn Then

just to be clear i change that to what key i want right?
also i do f1 right?
thats what f keys are called


Re: Hot keys - Kousaten - 07-09-2008

Right, doom.

As for Npc's number, try NpcNum. You can work from there to learn how it works. Big Grin


Re: Hot keys - Doomy - 07-09-2008

Dave Wrote:took me 1/2 second
http://msdn.microsoft.com/en-us/library/0z084th3(VS.80).aspx
thx man
this is really going to help me out