Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check online status of specific msn messinger account via ASP script

Status
Not open for further replies.

hemal666

Programmer
Dec 10, 2001
25
GB
hi
i want one of my pages to be able to tell if im signed in on msn messinger? Is it possible and how do i do it? Plaese HELP!

thanks
hemal
 
Hi Hemal,

Yes it is possible, but there is an easy way, and a hard way. (Isn't there always ?)

The hardway would consist of developing a component that communicates via TCP directly to the MSN servers (first the notification servers, then the switchboard servers)

Here is some information on the protocol:

It is not that difficult to get this developed, but it does present difficulties and extra effort.


The simpler way is to use an online service that does this for you...
This lets you either query one of the open hosts with your msn account details or you can download the server software that does this for you and install it on the server of your choice.

Basically you can use a formatted url to return a specific image depending whether you are online or not:

Code:
[URL unfurl="true"]http://onlinestatusserver.example.com:8080/[/URL]
msn/example@hotmail.com/
onurl=http://yoursite.com/imgs/online.gif/
offurl=http://yoursite.com/imgs/offline.gif/
unknownurl=http://yoursite.com/imgs/unknown.gif
(without the linebreaks (all one string, no spaces) and substituted URL's)

You would put this in an img src attribute and the relevant image will display - that simple!

My only warning with using other peoples servers is that it is not a guaranteed service, and not all of them work consistently - you're better off setting up your own server - it is quite simple.

As you can see, you can define which graphics you want for each status.

You can also point it to a text file, and have the word (online, offline, unknown) in the file - this can help you to programatically use the response. To do this you can use XMLHTTP to call the url and return the text in the file.

Hope this helps.

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top