Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-20-2008, 11:19 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by LoneAngelIbesu View Post
You can use onKeyDown() for a GuiMLTextEdtCtrl. However, you'll have to sacrifice line breaks. I believe the ENTER key is keycode 28.
u can lookup the keycode by doing
PHP Code:
function onKeyPressed(code,key)
{
player.chat code;

__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #2  
Old 07-20-2008, 11:25 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Hmm...well like I said this is a dynamic GUI, I looked it up and 28 is indeed enter, but - since it's dynamic and I have to use catchevent how can I check what the keycode is? Because it does...

thiso.catchevent( this.name, "onKeyDown", "onSendMessage" );

So the paramaters for onSendMessage would only be the object, the keycode would be lost wouldn't it?

EDIT:
I've figured this one out for myself so this thread is no longer necessary. Thanks again for the help everyone

Last edited by The_Kez; 07-21-2008 at 01:18 AM.. Reason: Typo
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.