What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Colour Fade plugin

Pages: (8): « First « 1 [ 2 ] 3 4 5 6 » Last »
Colour Fade plugin
Author: Message:
musicalmidget
Elite Member
*****

Avatar
Hmm, randomness...

Posts: 1663
Reputation: 12
37 / Male / Flag
Joined: Dec 2002
RE: Colour Fade plugin
It looks great!  I've downloaded and unzipped it...I just need someone to come online now so as I can try it. :P
07-04-2003 12:36 PM
Profile E-Mail PM Web Find Quote Report
Finn
Junior Member
**


Posts: 41
– / Male / –
Joined: Jul 2003
O.P. RE: Colour Fade plugin
seeing as people seem to want the source and it only took like 10 mins to do, here is the code for the fade function i did, its not great, its very quick and nasty but for anyone who wants it...

oh and it will also go beyond maxtofill by a small amount of letters (which i get around by simply setting maxtofill to be well under the maximum msn plus limit (but still greater than the actual network send limit)

the rest of the plugin is just parameter parsing

void FillColourFade(char *sResult, int maxtofill, int colour1, int colour2, char *text)
{
    int numlets = strlen(text)-1;
    float r1,g1,b1;
    float r2,g2,b2;
    float rstep, gstep, bstep;
    int letsdone = 0;
    char buf[5];

    r1 = (float)((colour1&0xff0000)>>16);
    g1 = (float)((colour1&0x00ff00)>>8);
    b1 = (float)(colour1&0x0000ff);
    r2 = (float)((colour2&0xff0000)>>16);
    g2 = (float)((colour2&0x00ff00)>>8);
    b2 = (float)(colour2&0x0000ff);

    rstep = (r2-r1)/(float)(numlets);
    gstep = (g2-g1)/(float)(numlets);
    bstep = (b2-b1)/(float)(numlets);

    while (*text && maxtofill > 0)
    {
        *(sResult++) = 3;
        maxtofill--;
        *(sResult++) = '(';
        maxtofill--;

        sprintf(buf, "%03d",(int)r1);
        strcpy(sResult, buf);
        sResult += strlen(buf);
        maxtofill -= strlen(buf);

        *(sResult++) = ',';

        sprintf(buf, "%03d",(int)g1);
        strcpy(sResult, buf);
        sResult += strlen(buf);
        maxtofill -= strlen(buf);

        *(sResult++) = ',';

        sprintf(buf, "%03d",(int)b1);
        strcpy(sResult, buf);
        sResult += strlen(buf);
        maxtofill -= strlen(buf);

        *(sResult++) = ')';
        maxtofill--;

        *(sResult++) = *(text++);
        maxtofill--;

        r1 += rstep;
        g1 += gstep;
        b1 += bstep;
    }
}


07-04-2003 12:37 PM
Profile PM Find Quote Report
Misterjad
Full Member
***

Avatar

Posts: 129
Reputation: 1
38 / Male / –
Joined: Sep 2002
RE: Colour Fade plugin
thx a lot finn ;)

musicalmidget> you can send an IM to an unexistant person :
Actions>send an IM (first one)>Others
write down an adress like qdf@fd.sdq and it'll work ;)
07-04-2003 12:59 PM
Profile E-Mail PM Find Quote Report
Finn
Junior Member
**


Posts: 41
– / Male / –
Joined: Jul 2003
O.P. RE: RE: Colour Fade plugin
quote:
Originally posted by Burning Bob
You really made a good plugin.
This thing is going to be popular.
I hope you don't mind that I put it on my site???
:D:d:d:d:d:d:d:d


no problem, but i should be updating it tonight so might want to wait until then
07-04-2003 01:12 PM
Profile PM Find Quote Report
Bamboe
Junior Member
**

Avatar

Posts: 30
Joined: Feb 2003
RE: Colour Fade plugin
could you pleas give me the whole souce code, becaus i want to try to make a plug in but I have no idea how to start (I don't know how to make a dll in borland C++ 6)

tnx
07-04-2003 02:06 PM
Profile E-Mail PM Find Quote Report
Burning Bob
New Member
*

Avatar

Posts: 9
– / Male / –
Joined: Jul 2003
RE: RE: RE: Colour Fade plugin
quote:
Originally posted by Finn
no problem, but i should be updating it tonight so might want to wait until then


I've already got it online but i'll update it when you're ready
_  |¯`)   |     |  |¯¯)  |\    |  |  |\    |  /¯_        |¯`)   /¯¯\  |¯`)   _
¯  |__)  \._./  |¯¯\  |    \|  |  |    \|  \__|       |__)  \__/  |__)  ¯
Burningbob.tk
:many:
07-04-2003 02:15 PM
Profile PM Web Find Quote Report
Finn
Junior Member
**


Posts: 41
– / Male / –
Joined: Jul 2003
O.P. RE: RE: Colour Fade plugin
quote:
Originally posted by Bamboe
could you pleas give me the whole souce code, becaus i want to try to make a plug in but I have no idea how to start (I don't know how to make a dll in borland C++ 6)

tnx


download the msn plus plugin framework that patchou has released, as that has everything you need and its what i used as a basis

no idea about creating a DLL in borland C++ 6 as i simply loaded the project patchou provided and had VS .NET convert it to its format and it worked straight outta the zip
07-04-2003 02:25 PM
Profile PM Find Quote Report
musicalmidget
Elite Member
*****

Avatar
Hmm, randomness...

Posts: 1663
Reputation: 12
37 / Male / Flag
Joined: Dec 2002
RE: Colour Fade plugin
I've just tried it.  It's great!

I agree with Patchou however, some random fades would make it even better.  Maybe you could also have a small pop-up box like you get for ctrl + k in the conversation window?

Well done! (y)
07-04-2003 02:55 PM
Profile E-Mail PM Web Find Quote Report
Boldylocks
Junior Member
**

Avatar
Mad Cow

Posts: 22
61 / Female / –
Joined: Jun 2003
RE: Colour Fade plugin
cool,thanks for this plug-in , Finn  :D

"Your cat has an inner beast.. feed it" 
07-04-2003 02:56 PM
Profile PM Find Quote Report
Alpha Binary
Junior Member
**

Avatar

Posts: 85
35 / Male / –
Joined: Jan 2003
RE: Colour Fade plugin
Cool, Even Patchou likes it! ^^'
07-04-2003 03:07 PM
Profile E-Mail PM Web Find Quote Report
Pages: (8): « First « 1 [ 2 ] 3 4 5 6 » Last »
« Next Oldest Return to Top Next Newest »


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