SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Add contact / MSN Messenger

    Does anyone know how I can open the "Add new contact" dialog (in MSN Messenger) from a script in an html page?
    This isn't a javascript question of course, and I guess I will have to use some unsafe JScript/VBScript => will only work in IE (which is all I need)
    (And, yes, all clients are supposed to have MSN Messenger installed)

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Closest thing I could find crawling MSDN

    http://www.microsoft.com/downloads/d...DisplayLang=en
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    ********* Shroom mydster's Avatar
    Join Date
    Nov 2002
    Location
    tpyge
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean like that AOL/AIM add new contact box?

    You could add this code:

    <a href="java script:MsgrApp.LaunchAddContactUI(<A href="mailto:'email@email'">'email@email');">Text</a>


    If an href shows up for that email, delete '<A href="mailto:'email@email'">'

  4. #4
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All I get is this...
    "Object doesn't support this property or method"

  5. #5
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, found this searching google (link has a couple popups)
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  6. #6
    ********* Shroom mydster's Avatar
    Join Date
    Nov 2002
    Location
    tpyge
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Odd... that worked for me, though I am using Windows messenger atm.

  7. #7
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem solved:
    Code:
    	var objMsgr = document.getElementById("objMsgr");
    	var status = objMsgr.MyStatus;
    	if(!status)
    	{
    		alert("Some error accessing MSN Messenger (is it installed?)");
    		return;
    	}
    	else if(status < 2)
    	{
    		alert("You are not logged in");
    		return;
    	}
    	else
    	{
    		objMsgr.AddContact(0, name);
    	}
    ...and objMsgr is an object tag with classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28"

    Works in IE6/Win2k + MSN Msgr 5.0 (and that's enough for me)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •