quote:
Originally posted by uggi
quote:
Originally posted by Matty
code:
//
// This code run then you type something in the typing area..
//
function OnEvent_ChatWndEditKeyDown(ChatWnd,KeyCode) {
var VK_O = 0x4F;
Debug.Trace('KeyCode : '+KeyCode);
if(KeyCode == VK_O) {
ChatWnd.SendMessage('/ctcinfo');
}
}
I need to know.. how can i use words like "!profile" or "!info" in this script ?
Do i need to make a var for every 0x!! ?? or how can i make it ??
Use this either of these functions:
[string] OnEvent_ChatWndReceiveMessage(
[object] ChatWnd,
[string] Origin,
[string] Message,
[enum] MessageKind
);
[string] OnEvent_ChatWndSendMessage(
[object] ChatWnd,
[string] Message
);