A friend and script kiddy named Mike recently stumbled upon The Mocker script for Messenger Plus. Its been annoying me to no end, so I started developing the AntiMocker.
At first, I would simply reply with stuff like "//nick I am stupid", and he would type the same thing making his nickname "I am stupid". It was all fun till he blocked commands.
I started work based on the original Mocker, but have not yet succeeded.
Is there a way I can detect if the message being received is the same as the one I sent, thus prevent it from being printed out in the chat window?
Any help is sure appreciate it.
Here's a piece of code I developed based on The Mocker
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if(Message == "AntiMock")
{
antiMock = '1'
}
if(Message == "AntiMockOff")
{
antiMock = '0'
}
if(Message == "AntiMock?")
{
if(antiMock == '0')
{
Interop.Call("User32.dll", "MessageBoxW", 0, "AntiMocker Is OFF","Status", 0);
} else {
Interop.Call("User32.dll", "MessageBoxW", 0, "AntiMocker Is ON","Status", 0);
}
}
newMessage = Message;
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
lastMessage = Message;
if(antiMock == '1')
{
if (newMessage == lastMessage )
{
return false;
//This is where the blocking code should be placed at, I think.
}
}
}
Another question:
When I send a message, does MSN take it as a "Received Message"? Because I often get "message failed to be delivered" when testing The AntiMocker.
-Nushio