kwickway
asked on
MSN Messenger API
Hello, I want to be able to tell when a person comes on line, i want it to pop up a message box in visual basic, how is this done?
(no this will not be a bot or an anoyance of any type)
Thanks for your help!
(no this will not be a bot or an anoyance of any type)
Thanks for your help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did my link help you?
ASKER
Oh, im sorry, i will look in to this today and get back to you, my email was all messed up so i didn't think anyone saw this.
ASKER
No i couldnt figure it out
Very small examples of msn in VB
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=53415&lngWId=1
http://www.developerfusion.com/show/1844/
just as a start...
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=53415&lngWId=1
http://www.developerfusion.com/show/1844/
just as a start...
ASKER
neither of those worked
I downloaded the first one and could open the project. Did not test if it worked... sorry
First project is missing a reference to custsat.dll , you have to rereference it to "c:\program files\msn messenger\custsat.dll"
TRied something myself:
try the following
create a new project
add a reference to Messenger API Type library
Add following to the general section of the form
Private WithEvents ms As Messenger
This way you can use events of the messenger object i.e.
Private Sub ms_OnContactStatusChange(B yVal pMContact As Object, ByVal mStatus As MessengerAPI.MISTATUS)
End Sub
Private Sub ms_OnGroupAdded(ByVal hr As Long, ByVal pMGroup As Object)
End Sub
You can see all events, properties and methods of the messenger object, by selecting the messenger text in the declaration and then hit SHIFT + F2, the object browser opens....
First project is missing a reference to custsat.dll , you have to rereference it to "c:\program files\msn messenger\custsat.dll"
TRied something myself:
try the following
create a new project
add a reference to Messenger API Type library
Add following to the general section of the form
Private WithEvents ms As Messenger
This way you can use events of the messenger object i.e.
Private Sub ms_OnContactStatusChange(B
End Sub
Private Sub ms_OnGroupAdded(ByVal hr As Long, ByVal pMGroup As Object)
End Sub
You can see all events, properties and methods of the messenger object, by selecting the messenger text in the declaration and then hit SHIFT + F2, the object browser opens....
ASKER
its also missing the "Messenger API Type Library", can't find that one. I do have MSN 6.2 installed
If I open the first project, the messenger api reference is set to
c:\program files\messenger\msmsgs.exe \3
don't know what kind of file it is though!!
c:\program files\messenger\msmsgs.exe
don't know what kind of file it is though!!
ASKER
Yea, that didn't do anything for me, i tried it but it wasn't there.
I think the file I mentioned points to windows messenger,
maybe you should use
c:\program files\msn messenger\msnmsgr.exe
maybe you should use
c:\program files\msn messenger\msnmsgr.exe
Also take a look at
http://www.skybolts.com/ti/msnbot.html
here you can download a zip-file with a project in it, that uses messenger etc...
http://www.skybolts.com/ti/msnbot.html
here you can download a zip-file with a project in it, that uses messenger etc...
With all the links I gave it should be enough
ASKER
I never could figure it out at all. The links that were provided were only for older versions of msn messenger, and i never got what i wanted resolved. I would like a refund. p_sie for trying?
If I didn't help you solve the question, then I think a refund is ok, but you might have kept this post alive in order to get the answer you wanted!
ASKER
as you can see i have tried to keep it alive. EE is wanting to close it because it is too old. I just want you and everyone to know how helpful this site has been for me!
But you never commented on my last 4 comments (before the administrative comment), so I thought you figured it out somehow!
ASKER
Administrative.... The info that was givn didn't work. Howa bout jst a refund?
Info did not work on MSN 6.2, I have MSN 6.1 and it worked, so saving as a 0-point PAQ maybe help someone else....
ASKER
:) p_sie... I want you to know i do apreciate you work and submitions to this website. People like you have helped me come a long ways in my programing experiance.