What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Hide Contact's Email

Hide Contact's Email
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Hide Contact's Email
Doing something like this will update the Chat Windows every 10 seconds and when they are opened as well.

js code:
MsgPlus.AddTimer('update_names', 10000);

function OnEvent_ChatWndCreated(pChatWnd) {
    var s;

    for (oContact = new Enumerator(pChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext())
        s+=oContact.item().Name+(!oContact.atEnd()?', ':'');

    Interop.Call('user32', 'SetWindowTextW', pChatWnd.Handle, MsgPlus.RemoveFormatCodes(s));
}

function OnEvent_Timer(sTimerId) {
    for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) {
        OnEvent_ChatWndCreated(oChatWnd.item());
    }
    MsgPlus.AddTimer(sTimerId, 10000);
}

Cheers

This post was edited on 05-27-2010 at 07:58 PM by matty.
05-27-2010 07:53 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Hide Contact's Email - by Dex Luther on 05-27-2010 at 02:54 AM
RE: Hide Contact's Email - by Chris4 on 05-27-2010 at 03:46 PM
RE: Hide Contact's Email - by djdannyp on 05-27-2010 at 07:36 PM
RE: Hide Contact's Email - by matty on 05-27-2010 at 07:53 PM
RE: Hide Contact's Email - by djdannyp on 05-27-2010 at 09:13 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On