quote:
Originally posted by Hit
One more question you know how to block something sending
So if i type something it wont send if you click no
If you want to send a message to a contact ??
Maybe I don't understand (I'm French
), but... what is "something" ??
For ALL messages
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
var Val=Interop.Call("User32.dll", "MessageBoxW", ChatWnd.Handle,"Message","Title", 4|32);
if (Val==6) { // Yes
return Message;
}
else if (Val==7) { // No
return "";
}
}
For a DEFINED message
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
if (Message=="MyMessage") {
var Val=Interop.Call("User32.dll", "MessageBoxW", ChatWnd.Handle,"Message","Title", 4|32);
if (Val==6) { // Yes
return Message;
}
else if (Val==7) { // No
return "";
}
}
return Message;
}