What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Retrieve Text of MSN window

Retrieve Text of MSN window
Author: Message:
Zick
New Member
*


Posts: 9
Joined: Feb 2005
O.P. Retrieve Text of MSN window
Hello world

I'm currently coding an application in vb6 and I've a problem. In fact I would retrieve the content of a MSN window.

By example : To my contact "Marie" The conversation is that :

Marie said :
Hello
Zick Said :
How are you ?

And when I click on a button of my application, there's, by example, a MSGBOX that said :

Marie said :
Hello
Zick Said :
How are you ?

Is someone know how to do ?
02-12-2005 12:12 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: Retrieve Text of MSN window
Using the messenger api you can use the IMessengerConvosationWnd interface of a convosation window do get its contents.
code:
oConversationwindow.history
oCovosation window is the IMessengerConvosationWnd interface of the window you want to get the history of
02-12-2005 12:16 PM
Profile PM Find Quote Report
Zick
New Member
*


Posts: 9
Joined: Feb 2005
O.P. RE: Retrieve Text of MSN window
And how said to the program of which window the text must be retrieved ?

Can you give me the code plz ?
02-12-2005 12:21 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: Retrieve Text of MSN window
Ok this example will put the history in a text box.
code:
Private oMessenger As MessengerAPI.Messenger

Private Sub Form_Load()
Dim oConvo As MessengerAPI.IMessengerConversationWnd
Set oMessenger = New MessengerAPI.Messenger
Set oConvo = oMessenger.InstantMessage("contact@hotmail.com") 'Makes a new im window is one isnt open
Text1.Text = oConvo.History
End Sub

And you will need to add a referance to the messenger api bye checking "Messenger API Type libary"
[Image: attachment.php?pid=379758]

.png File Attachment: blah.PNG (15.08 KB)
This file has been downloaded 253 time(s).
02-12-2005 12:31 PM
Profile PM Find Quote Report
Zick
New Member
*


Posts: 9
Joined: Feb 2005
O.P. RE: Retrieve Text of MSN window
Now I've another question. Do you know If it exists an Event who send command when the text of a conversation changed ? By example, there is this conversation :

Marie said :
Hello
Zick Said :
How are you ?

And when Marie answer, Yes and You ? My programm retrieves "Yes and you ?".

Do you understand ?
02-12-2005 12:45 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Retrieve Text of MSN window
There isn't an event like that. However, if you can create threads in VB6, you can have a loop in a separate thread that monitors the history.
[Image: spartaafk.png]
02-12-2005 02:04 PM
Profile PM Web Find Quote Report
Zick
New Member
*


Posts: 9
Joined: Feb 2005
O.P. RE: Retrieve Text of MSN window
oki, thx
02-12-2005 03:04 PM
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