What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Active Accessibility for incoming messages

Pages: (2): « First [ 1 ] 2 » Last »
Active Accessibility for incoming messages
Author: Message:
Hilikus
Junior Member
**


Posts: 27
42 / Male / –
Joined: Apr 2005
O.P. Active Accessibility for incoming messages
Has anybody used Active Accessibility to access messages' text? if so, can anybody point me on how to start? i need to trigger an OnMessageReceived function

Thanks

05-12-2005 07:31 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Active Accessibility for incoming messages
Its not as easy as you think. There isn't anything like that. What you have to do is have it dump the text to a textbox and code based on the text (or even the variable it is stored in). Do you have it reading the convo windows at all?

Using ActiveAccessibility requires subclassing the windows and if you do not know how to do this I suggest not trying cause it will only make your life harder. Use the Messenger API passed through initialize to use the .History object for the conversation.
05-12-2005 07:36 AM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Active Accessibility for incoming messages
You can use AccessibleObjectFromEvent to monitor changes in the History object of the conversation window.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-12-2005 08:45 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Active Accessibility for incoming messages
quote:
Originally posted by Matty
Using ActiveAccessibility requires subclassing the windows
No it doesn't. I'm using AA to hide DPs when the convo window opens, and I haven't subclassed anything.
[Image: spartaafk.png]
05-12-2005 10:16 AM
Profile PM Web Find Quote Report
Hilikus
Junior Member
**


Posts: 27
42 / Male / –
Joined: Apr 2005
O.P. RE: RE: Active Accessibility for incoming messages
quote:
Originally posted by Matty
Use the Messenger API passed through initialize to use the .History object for the conversation.


where can i get more information about getting the history object?? any references or sample code i can look at??
05-12-2005 06:29 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: Active Accessibility for incoming messages
:o

i found some sample code...

but i just cannot get my head around it..

Vb6 btw:
http://www.jsware.net/jsware/vbcode.html
05-12-2005 06:45 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Active Accessibility for incoming messages
I believe the Plus API docs have the Messenger API stuff inside them now, as MS don't like people using MSN's APIs for some reason :mipdodgy:

Edit: This thread looks like an MSN conversation now... :D

This post was edited on 05-12-2005 at 06:50 PM by RaceProUK.
[Image: spartaafk.png]
05-12-2005 06:47 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Active Accessibility for incoming messages
quote:
Originally posted by Stigmata
:o

i found some sample code...

but i just cannot get my head around it..

Vb6 btw:
http://www.jsware.net/jsware/vbcode.html
yea thats the code I used
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-12-2005 06:49 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Active Accessibility for incoming messages
Blah I think I will regret doing this but here is an example in VB with some comments for what we are doing.

.zip File Attachment: IMWindowClassReader.zip (8.89 KB)
This file has been downloaded 719 time(s).
05-12-2005 08:45 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Active Accessibility for incoming messages
Well done matty (Y)  I'm sure thats gonna help out a lot of VB coders
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-12-2005 09:00 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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