Solved

MSN Messenger API

Posted on 2004-04-15
24
302 Views
Last Modified: 2010-05-02
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!
0
Comment
Question by:kwickway
  • 13
  • 9
24 Comments
 
LVL 9

Accepted Solution

by:
p_sie earned 270 total points
ID: 10834737
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10971039
Did my link help you?
0
 

Author Comment

by:kwickway
ID: 10971368
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.
0
 

Author Comment

by:kwickway
ID: 10984651
No i couldnt figure it out
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10984826
0
 

Author Comment

by:kwickway
ID: 10984956
neither of those worked
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10985018
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(ByVal 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....
0
 

Author Comment

by:kwickway
ID: 10985059
its also missing the "Messenger API Type Library", can't find that one.  I do have MSN 6.2 installed
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10985463
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!!
0
 

Author Comment

by:kwickway
ID: 10985518
Yea, that didn't do anything for me, i tried it but it wasn't there.
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10985687
I think the file I mentioned points to windows messenger,

maybe you should use
c:\program files\msn messenger\msnmsgr.exe
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 9

Expert Comment

by:p_sie
ID: 10985734
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...
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10985774
0
 
LVL 9

Expert Comment

by:p_sie
ID: 10985810
0
 
LVL 9

Expert Comment

by:p_sie
ID: 11257228
With all the links I gave it should be enough
0
 

Author Comment

by:kwickway
ID: 11257246
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?
0
 
LVL 9

Expert Comment

by:p_sie
ID: 11257344
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!
0
 

Author Comment

by:kwickway
ID: 11261786
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!
0
 
LVL 9

Expert Comment

by:p_sie
ID: 11263006
But you never commented on my last 4 comments (before the administrative comment), so I thought you figured it out somehow!
0
 

Author Comment

by:kwickway
ID: 11420481
Administrative....  The info that was givn didn't work.  Howa bout jst a refund?
0
 
LVL 9

Expert Comment

by:p_sie
ID: 11423305
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....
0
 

Author Comment

by:kwickway
ID: 11426983
:)  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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now