| Mirage Source http://web.miragesource.net/forums/ |
|
| Hot keys http://web.miragesource.net/forums/viewtopic.php?f=201&t=4270 |
Page 1 of 1 |
| Author: | Doomy [ Sun Sep 07, 2008 3:43 am ] |
| Post subject: | Hot keys |
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? |
|
| Author: | Nean [ Sun Sep 07, 2008 5:03 am ] |
| Post subject: | Re: Hot keys |
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. |
|
| Author: | Doomy [ Sun Sep 07, 2008 5:19 am ] |
| Post subject: | Re: Hot keys |
thx i didnt know what the sub name was i was searching the whole source i must have skiped over it |
|
| Author: | Doomy [ Sun Sep 07, 2008 6:29 am ] |
| Post subject: | Re: Hot keys |
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 |
|
| Author: | Lea [ Sun Sep 07, 2008 8:10 am ] |
| Post subject: | Re: Hot keys |
took me 1/2 second http://msdn.microsoft.com/en-us/library/0z084th3(VS.80).aspx |
|
| Author: | Kousaten [ Sun Sep 07, 2008 2:03 pm ] |
| Post subject: | Re: Hot keys |
Right, doom. As for Npc's number, try NpcNum. You can work from there to learn how it works. |
|
| Author: | Doomy [ Sun Sep 07, 2008 2:56 pm ] |
| Post subject: | Re: Hot keys |
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 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|