What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » To MSN+ Developers, suggestion

To MSN+ Developers, suggestion
Author: Message:
Ripper86
New Member
*


Posts: 2
Joined: Jan 2005
O.P. To MSN+ Developers, suggestion
Hello,
I have just begun to create plugins for Messenger Plus, but i am trying to do something that requires MSN to call a function each time a message is recieved.

I was wondering if maybe in a future version of Messenger Plus, something could be implemented  that would call a function, TextRecieved() (or something like that), the method i am using now creates a message loop out of DllMain(), and acts as a nested program.

Also, maybe a call to another function that says what the local user has input, regardless of if the thext begins with a "/" (or just edit the ParseCommand() function maybe?)

I figure it would be much easier if  there was a function like TextRecieved() in the next Messenger Plus, as i am working on a project for encrypting text now.

Thank you for your time.
Ripper86.

This post was edited on 01-19-2005 at 05:23 AM by Ripper86.
01-19-2005 05:22 AM
Profile E-Mail PM Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: To MSN+ Developers, suggestion
quote:
Originally posted by Ripper86
Hello,
I have just begun to create plugins for Messenger Plus, but i am trying to do something that requires MSN to call a function each time a message is recieved.

I was wondering if maybe in a future version of Messenger Plus, something could be implemented  that would call a function, TextRecieved() (or something like that), the method i am using now creates a message loop out of DllMain(), and acts as a nested program.

Also, maybe a call to another function that says what the local user has input, regardless of if the thext begins with a "/" (or just edit the ParseCommand() function maybe?)

I figure it would be much easier if  there was a function like TextRecieved() in the next Messenger Plus, as i am working on a project for encrypting text now.

Thank you for your time.
Ripper86.


This can be implemented without even using Plus! by in MSN 6.2 there was as far as i know a registry setting you could change to enable proxy'ing but in MSN7.0 the new BETA it's alot harder. it's called Winsock Hooking and you have to do it with the Winsock in the IM Client.

im noob at winsock hooking and i have never even attempted it because i havent needed to yet, but from what i can *guess* you'll have to set the Window Procedure of the winsock to one of your own window procedures (maybe by using the SetWindowLong api call). the next part i have no clue about but somehow you have to tell whats happing incoming or outgoing. so in your case if it was outgoing you would have to encrypt it, incoming you would have to decrypt it. then call MSN's winsock Window Procedure again. but thats just normal Subclassing routine. Winsock subclassing might be different. try google and CodeProject usually have some source.

if your gonna look into winsock hooking first i suggest hooking one of the controls inside your own app. then dll injection, then subclassing something inside another program using your injected dll.

some useful api's are
FindWindow
FindWindowEx
SetWindowLong
CallWindowProc

there may be another possibility but i had some trouble with it. DLL Injection and subclassing the client's window procedure. if you can do this successfully then you can somehow get the value for when msn's send button or the enter key is pressed and get the text. and encrpyt it. then when msn recieves text and before it gets written on the form so the user can see it you'll need to decrypt it.

In my opinion the winsock hooking way would be the way to go because you encrypt it just before it sends meaning the text written on the window wouldnt be encrypted like if you subclassed the IM.

anyway good luck, and if you can successfully tell when text is recieved and sent and you could store it in a variable then maybe you should attempt making it into a dll people can use for their own projects. like an extension to the API. (Y) good luck

This post was edited on 01-19-2005 at 01:39 PM by Ash_.
[Image: jeansiger5.jpg]
01-19-2005 01:33 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: To MSN+ Developers, suggestion
Plus! will not add a function that contains the conversation text due to privacy issues. So do what Ash_ says and "do it yourself".
01-19-2005 07:56 PM
Profile E-Mail PM Find Quote Report
Ripper86
New Member
*


Posts: 2
Joined: Jan 2005
O.P. RE: To MSN+ Developers, suggestion
I've done DLL injection a few times.
Ill give it a try.

Thanks for your help
01-20-2005 03:54 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On