The Messenger::OpenChat function opens a chat window with the specified contact. If a chat window with this contact is already opened, the window is activated.
[object] OpenChat( [var] Contact );
A ChatWnd object if the function succeeds or null if it fails.
This function typically fails for the following reason:
By default, if an email string is specified for Contact, this function searches for both Windows Live and Yahoo Messenger contacts. If the current user has twice the same contact in its list, both using the same sign-in email for Windows Live and Yahoo, the contact object returned by default will always be the one connected on Windows Live. You can force a request for contacts on the Yahoo network by prefixing the email with "yahoo:".
Object | Messenger |
---|---|
Availability | Messenger Plus! Live 4.00 |