HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2003, 03:10 PM
destravation destravation is offline
cr-creations.co.uk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Manchester, England
Posts: 229 destravation User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 23 m 35 sec
Reputation Power: 7
Send a message via AIM to destravation Send a message via Yahoo to destravation
msn messenger instant message

I have posted before about a javascript to use, when a link is clicked on a page. it open an msn messenger message window to a certain msn user. i have seen it before on a website but never remember where it was.

i was given this last time i posted...
Code:
<script language="javascript" type="text/javascript">
<!--
function msn() {
var msnControl = new ActiveXObject('Messenger.UIAutomation.1');
msnControl.AutoSignin();
msnControl.InstantMessage('someone@hotmail.com');
}
//-->
</script>


but i couldnt get it to work. it keeps saying "Automations server cant create object."
thanks.
regards

Last edited by destravation : March 20th, 2003 at 11:45 AM.

Reply With Quote
  #2  
Old March 20th, 2003, 05:19 PM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,654 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 21 h 16 m 56 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
I dunno...

But I sure would like to know how to have an icon in a users profile that displays their msn status. MSN profiles do it so it cant be impossible... although whether or not they are telling is another thing!

Reply With Quote
  #3  
Old March 20th, 2003, 10:42 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
I was probably the one who gave you that...

Do you allow any sort of ActiveX execution in your security settings in IE? The code requires that. Also, I've only personally tested it with Windows Messenger - which is WinXP, I'm not sure about MSN Messenger - which is for other Windows clients.

And ralph, I have code to to iteratively search through your list checking for online status, but the drawback is that the user needs to be in your list first.
__________________
Jason Contact Me
Super moderator @ CodingForums

Reply With Quote
  #4  
Old March 21st, 2003, 06:14 AM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,654 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 21 h 16 m 56 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
thanks. Im afraid what we are looking for is for users to be able to add people to their list depending on whether or not they are online.

Reply With Quote
  #5  
Old March 21st, 2003, 08:29 AM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
You can add someone to your contact list like so:

var msnControl = new ActiveXObject('Messenger.UIAutomation.1');
msnControl.AutoSignin();
msnControl.AddContact(0, "someone@hotmail.com")

Reply With Quote
  #6  
Old March 21st, 2003, 08:49 AM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,654 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 21 h 16 m 56 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
thats great, we can use that on profiles. Basically. Imagine our profile page. A users profile will have add to msn messenger on it. What we would like to do is be able to check if that user is online. Is this possible. So we have a link saying add to list, and next to that it should say this user is online/offline? Is this possible?

Reply With Quote
  #7  
Old March 21st, 2003, 01:30 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
I have this code for determining online status:

Code:
var flag = false;
for (var i = 0; i < msnControl.MyContacts.Count; i++) {
	if (msnControl.MyContacts.Item(i) == msnControl.GetContact(user, msnControl.MyServiceId)) {
		flag = true;
		break;
	}
}
if (!flag) {
	if (confirm('A Messenger user needs to be on your contact list before you can query their online status.\n\nAdd "' + user + '" to your contact list?'))
		msnControl.AddContact(0, user);
}
var msnWindow = window.open('about:blank','','scrollbars=no,toolbar=no,directories=no,resizable=no,status=no,menubar  =no,width=75,height=25');
msnWindow.document.write('<img src="msn' + Number(flag) + '.gif" width="16" height="16" alt="MSN"/><font face="Arial" size="2">&nbsp;' + (flag ? 'Online' : 'Offline') + '</font>');


Just a request... if you're going to use my code, I'd appreciate some credit somewhere ("thanks to jkd - www.jasonkarldavis.com"), as finding the JScript API for Messenger was no easy task...

Reply With Quote
  #8  
Old March 21st, 2003, 02:41 PM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,654 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 21 h 16 m 56 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
thats excellent thanks. Just out of interest, is it totally impossible to go microsoft-esque (www.msnusers.com) and when you search for users it shows their online/offline status whether or not they are in your contact list?

And of course I will give you a credit, I know exactly how difficult it is to find Messenger related API's

Reply With Quote
  #9  
Old March 21st, 2003, 03:50 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
Quote:
Originally posted by ralphuk100
is it totally impossible to go microsoft-esque (www.msnusers.com) and when you search for users it shows their online/offline status whether or not they are in your contact list?


Probably, but I don't know how.

Reply With Quote
  #10  
Old March 21st, 2003, 06:50 PM
destravation destravation is offline
cr-creations.co.uk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Manchester, England
Posts: 229 destravation User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 23 m 35 sec
Reputation Power: 7
Send a message via AIM to destravation Send a message via Yahoo to destravation
ahh yes jkd you were the one. I went to your site aswell. it gave me the same errors when i clicked your contact link to msn.
im using windows xp windows messenger 4.7 and all active x is allowed on my browser. im guessing the code u gave me works find for you :/ very strange.

thanks for the help ill have a play with my settings in ie.

Reply With Quote
  #11  
Old July 28th, 2004, 11:03 PM
ty604 ty604 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 ty604 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to ty604
I am a year late

Anyone have any new news?

I need to create a link in a html page or FLA doc that a user can click on to auto add my MSN username to their Messenger buddy list.

Any new news on this subject from last year?

Thanks

Peace

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > msn messenger instant message


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |