Shoutbox

Msg Parsing - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Msg Parsing (/showthread.php?tid=37775)

Msg Parsing by Hanumanji on 02-01-2005 at 04:21 AM

Hi,
I want to make a plugin, that parses the msgs written by the user before sending, and the msgs received before been displayed....
i.e. a "translator" plugin..... I had downloaded the file at http://msgplus.net/help_plugins.php... and checked the Sample... But it only shows how to add Commands And Tags.... I don't want to require a command for the translation, it should be done automatically..

Can anyone help me out?

[sorry my english] :$


RE: Msg Parsing by Ash_ on 02-01-2005 at 05:10 AM

hmm, you'll need to do this Via Proxying (the only reliable way i can think of right now).

go look up some examples in Winsock hooking, and DLL Injection. what language might you be coding this in?


RE: Msg Parsing by mrhuge on 02-01-2005 at 09:26 PM

I've created an MSN proxy program which I've recently ported to a MSG Plus! plugin. This plugin has a plugin interface of it's own which currently only supports C++. I'm planning on adding VB support as well, but I'll have to find the time to do this.
With these plugins you can intercept/change/block incoming and outgoing messages.


RE: Msg Parsing by Stigmata on 02-01-2005 at 09:30 PM

by proxy do you mean socks etc... or a winsock hook?


RE: Msg Parsing by Menthix on 02-01-2005 at 11:09 PM

Taken from the MSN Proxy site in mrhuge's sig:

quote:
A SOCKS4 proxy for MSN Messenger. This proxy has plugin support to enable you to make auto responders and/or interactive agents. Besides this you can select your initial status when signing in (online, away, etc...) and ping for keep-alive.

http://sourceforge.net/projects/msnproxy/

Nice to see MSN Proxy as a Plus! plugin btw, i remember you talked about this way back :).
RE: Msg Parsing by aNILEator on 02-01-2005 at 11:24 PM

wow its Mr. Huge you've not posted in ages.

I suggested a translation plugin before somewhere

where you select your contacts language and al messages you send are in their language and every message you recieve are in your language


eg

My Contact is french

Fukafly (thats me) typess: Hi
[Plugin interception - - - > Translation]
{sending....}

My contact recieves:-

Fukafly says: Salut!


:)


RE: Msg Parsing by mrhuge on 02-02-2005 at 03:56 PM

quote:
Originally posted by Stigmata
by proxy do you mean socks etc... or a winsock hook?
Well, it's a bit of both actually. This plugin-version doesn't work 100% the same as the standalone version.
The plugin hooks the Notification Server session (which is basically the main connection of MSN Messenger) using a winsock hook. When there's an incoming or outgoing conversation request, it will intercept the Switchboard session (a separate TCP/IP connection for each conversation) using the good ol' MSN Proxy functionality. Plugins will be notified of new incoming or outgoing conversations and messages. Using a simple (100% threadsafe) callback mechanism you can also send messages to the local or remote user.