What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Name Scroller

[Request] Name Scroller
Author: Message:
the DtTvB
Junior Member
**


Posts: 47
Reputation: 10
– / Male / –
Joined: Mar 2007
Status: Away
RE: [Request] Name Scroller
Is this one what you want?

This code makes all your IM window goes like this..
name - conversation
ame - conversation - n
me - conversation - na
e - conversation - nam
and so on....

code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

var pst = {};

// Yay!!! My first time to Win32API!!!

function dowith( w ) {
    if (typeof pst[w.Handle] == 'undefined') {
        var wb = Interop.Allocate(512);
        Interop.Call('user32.dll', 'GetWindowTextW', w.Handle, wb.DataPtr, 512)
        pst[w.Handle] = [0, wb.ReadString(0, true)];
        wb.Size = 0;
    } else {
        if (pst[w.Handle][0] > pst[w.Handle][1].length)
            pst[w.Handle][0] = 0;
        var fs = pst[w.Handle][0];
        var tx = pst[w.Handle][1];
        Interop.Call('user32.dll', 'SetWindowTextW', w.Handle, tx.substr(fs) + ' - ' + tx.substr(0, fs))
        pst[w.Handle][0] ++;
    }
}

function OnEvent_Timer( x ) {
    var cc = Messenger.CurrentChats;
    var e = new Enumerator(cc);
    var w;
   
    for(; !e.atEnd(); e.moveNext()) {
        w = e.item();
        dowith ( w );
    }
    MsgPlus.AddTimer ('scrollcontacts', 150);
}
Debug.DebuggingWindowVisible = true;
MsgPlus.AddTimer ('scrollcontacts', 200);

This post was edited on 03-11-2007 at 02:15 AM by the DtTvB.
the DtTvB - My name has no meaning, but it's unique at least!
[Image: asj.gif]
03-11-2007 02:10 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Name Scroller - by LoochTheMan on 03-10-2007 at 06:31 PM
RE: [Request] Name Scroller - by Jarrod on 03-10-2007 at 10:51 PM
RE: [Request] Name Scroller - by the DtTvB on 03-11-2007 at 02:10 AM
RE: RE: [Request] Name Scroller - by xsylvain2 on 03-16-2007 at 02:39 PM
RE: [Request] Name Scroller - by LoochTheMan on 03-11-2007 at 06:18 AM


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