Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hot keys
#1
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?
Reply
#2
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.
Reply
#3
thx i didnt know what the sub name was i was searching the whole source
i must have skiped over it
Reply
#4
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
Reply
#5
Right, doom.

As for Npc's number, try NpcNum. You can work from there to learn how it works. Big Grin
Reply
#6
Dave Wrote:took me 1/2 second
http://msdn.microsoft.com/en-us/library/...S.80).aspx
thx man
this is really going to help me out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)