Shoutbox

help with retrieving personal message - 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: help with retrieving personal message (/showthread.php?tid=57903)

help with retrieving personal message by twentytwo on 04-06-2006 at 05:28 AM

Hello fellow plus junkies, I am trying to find a way to access the personal message for a plugin I am making for Plus, It is absolutly essential for this plugin to access the personal message atleast once every 5 minutes, without it, the plugin will not fullfill the goal it was originally intended for. I can't tell you my idea either because believe me, It WILL be copied :P But it will be good and you will like it if I can get it done.

I was hoping there was some WinAPI stuff that could do it but it appears the window which contains the PM is actually nameless or hidden or something, perhaps there is an API which can take X-Y co-ords that im not aware of?

The other option is to use active accessiblity but I have NO IDEA where to start with that.

Please help!


RE: help with retrieving personal message by J-Thread on 04-06-2006 at 08:30 AM

Take a look at this page, it might be interesting for you(Y)


RE: help with retrieving personal message by twentytwo on 04-06-2006 at 09:52 AM

That page has information about changing the PM, I am looking to retrieve the PM.


RE: help with retrieving personal message by CookieRevised on 04-06-2006 at 10:09 AM

We can't help you anymore than what is already been said in your thread on the MSNFanatic forums....

I'm not going to repeat everything what TheSteve have said there, but it is all correct and nothing more can be added to that.

http://forums.fanatic.net.nz/index.php?showtopic=15194


RE: help with retrieving personal message by twentytwo on 04-06-2006 at 11:18 AM

Thats not entirely true, patchou manages to retrieve the PM changes and log them in his event log and I know he dosn't hook the sockets, so there is SOME way of doing it..


RE: help with retrieving personal message by Dempsey on 04-06-2006 at 11:21 AM

quote:
Originally posted by twentytwo
Thats not entirely true, patchou manages to retrieve the PM changes and log them in his event log and I know he dosn't hook the sockets, so there is SOME way of doing it..
AFAIK he know uses either winsock hooking or some form of sniffing to look directly at the protocol data.
RE: help with retrieving personal message by twentytwo on 04-06-2006 at 12:06 PM

Dosn't seem like something a professional programmer like patchou would do, hopefully he has a response for this thread :)

My guess is that hes an expert with the Windows API or he used a little ASM hack to grab the PM like he does for the nickname changing (i believe)..


RE: RE: help with retrieving personal message by CookieRevised on 04-06-2006 at 12:14 PM

quote:
Originally posted by twentytwo
Thats not entirely true
That's completely true...

Again, there is nothing which can be added to what TheSteve has said.

And as he also has said and explained multiple times, forget about API's and stuff... Messenger does NOT use controls like you are used to in other programs. It makes his own controls, they are windowless, etc...

There is NO API which you can use...

Please reread what has been said in the thread on MSNFanatic.

The way Patchou does it is way complicated (righedit hooking) and frankly (after reading both threads here and on msnfanatic) I doubt you have the knowledge to pull this off or to understand how.

Sorry for being so blunt, but you keep on asking/persisting when everything is already explained multiple times...
RE: help with retrieving personal message by twentytwo on 04-06-2006 at 01:09 PM

quote:
The way Patchou does it is way complicated (righedit hooking) and frankly (after reading both threads here and on msnfanatic) I doubt you have the knowledge to pull this off or to understand how.


The way patchou does what? make Plus? Im not asking how he made plus, im asking how he identifies the Personal Message "window" or "container" or whatever the heck you want to call it, because if the thing exists and has a handle, there IS a way to pull the string from it. Patchou cannot simply hook all msn windows and automatically "know" which messages are from the Personal message text box and which are from the plus menu's, he has to be able to identify or distinguish the Personal Message changes from other changes using a handle, and I want to know where he gets the handle from.

And just to note, your bluntness simply comes off as arrogance, please don't talk to me like I'm a child.
RE: RE: help with retrieving personal message by CookieRevised on 04-06-2006 at 01:17 PM

quote:
Originally posted by twentytwo
The way patchou does what?
The way Patchou catches the PSM as you are asking...

quote:
Originally posted by twentytwo
... make Plus?
Im not asking how he made plus, im asking how he identifies the Personal Message "window" or "container" or whatever the heck you want to call it
Nobody said anything about making Plus!...

Everybody (in both this thread and on MSNFanatic) replied to you about how to (try to) catch the PSM.

quote:
Originally posted by twentytwo
because if the thing exists and has a handle, there IS a way to pull the string from it.
Please read the threads and posts...

http://forums.fanatic.net.nz/index.php?s=0d6b22f6...w=findpost&p=97560

If you don't know what richedit hooking or socket hooking is, I'd suggest to look deeper into that and do some google searches (instead of persisting and asking the same stuff over and over again as if we don't know what you're asking)...

quote:
Originally posted by twentytwo
And just to note, your bluntness simply comes off as arrogance, please don't talk to me like I'm a child.
I'm sorry but everything which we could have said is already been said more than multiple times. You keep on asking the same thing (not to mention mis- or not understanding apparently what has been said).

Also, my initial post to this thread was also to suggest to keep it in the MSNFanatic thread as that has the most and detailed information already. No need to cross posting on different forums with the result of having two threads about exactly the same but with both having half to explanation... Hence why I said that we can't add anything to what has been said on MSNFanatic
RE: help with retrieving personal message by twentytwo on 04-06-2006 at 01:32 PM

I know enough about hooking (and just for the record, probably 10x what you know) to know that you cant mindlessly intercept all WM's from msn messenger and automatically know which is a personal message, which is a menu click, which is a receieved message.. etc.. You have to know the Handle of the object in question so that you can identify where the changes are occuring in your application,

For example, if you know the handle for the RichTextBox inside a conversation window you can distinguish all messages coming from that text box from all the other messages which have different handles.

Fanatic have done a good job answering my questions, but TheSteve also believes that patchou uses a socket hook, however, I do not believe that someone of patchous calibre would do such a thing, I believe he is using API's or some kind of memory hack, which is something you probably have very little knowledge of.

Please do not respond again Cookie, it will only force me to re-explain myself once more, resulting in the exact thing you are trying to prevent - spam.

So again, I ask, How did patchou locate this handle? And what is it?


RE: help with retrieving personal message by RaceProUK on 04-06-2006 at 06:01 PM

There is no handle: it's not a frigging window! I know: I've delved deeper into Messenger than most, trying to work out how it's constructed so I can exploit that to my own benign ends. SO, when I say there's no frigging handle to the PSM, there's no frigging handle!
Anyway, only developers will skills like Patchou are able to hook Winsock: I know, I've tried it myself and failed. And I'm no novice. And, you can intercept WMs and then work out which one is the PSM: it's not hard using Spy++. If there's a WM associated with a PSM change, it'll be caught by Spy++. Then it's a case of a simple subclass and filter function.

I suggest you go away and do some research into the Messenger window structure, then come back and read this thread and the one at Fanatic.