I'm new to MSN !Plus !Live scripting and i want to make my own plug-in, i have read det "fine/fucking" manual and i have made some functions now, but not all of dem are working...
I also have some other functions like the "Personal Message Chat" plug-in, but when people writes "!popup <and a message>" it just shows it in a popup...
BUT now i want's to make some short cuts with the ChatWndEditKeyDown Event...
If i read in the "manual":
quote:
The OnEvent_ChatWndEditKeyDown event is fired every time a key is pressed in the typing area of a chat window. It can be used to filter out some keys and use them as shortcuts for a feature of the script.
I get that... and i know that you need to have a [object] ChatWnd and a [number] KeyCode... i also know that the KeyCode for ABC is.. (41, 42 and 43) but i cant get the scripts working...
quote:
//
// This code run then you type something in the typing area..
//
function OnEvent_ChatWndEditKeyDown(ChatWnd,KeyCode)
{
var Key = KeyCode;
//
// If you press 0 in the typing area...
//
if(Key == 30) {
ChatWnd.SendMessage("/ctcinfo");
}
}
this script open the profile for a contact if you press the key "0"... hmm not...
I know that this code DON`T WORK... but i donīt know why...
So, can anyone please help me to understand the function... ( i'm sorry for the bad english.. )