What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » nick changer on timer

nick changer on timer
Author: Message:
doremi
New Member
*


Posts: 7
Joined: Feb 2005
RE: nick changer on timer
hi, I try to write a plug-in to change nick per minute,
here is the code..

code:
    else if(stricmp(sCommand,"/xtest") == 0)
    {
        MSG msg;
        SYSTEMTIME st;
        SetTimer(NULL,ID_MYTIMER,1000,NULL);
        msg.message=WM_TIMER;
        bool flag=true;
        msg.lParam=(LPARAM)true;
        static char szTime[64];
       
        while(msg.message != WM_QUIT)
        {
            if(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
            {
                TranslateMessage(&msg);
                DispatchMessage(&msg);
            }
            if(msg.message==WM_TIMER && msg.lParam==ID_MYTIMER)
            {
                GetLocalTime(&st);
                wsprintf(szTime,"%02d:%02d:%02d",st.wHour,st.wMinute,st.wSecond);
                SetNewName(szTime);
            }
           
            Sleep(1);
        }



but it doesn't work.....
What's wrong with my program? Thanks!!:o
09-11-2005 03:09 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
nick changer on timer - by aravinda on 09-09-2005 at 12:05 PM
RE: nick changer on timer - by qgroessl on 09-09-2005 at 12:11 PM
RE: nick changer on timer - by (CyBeRDuDe) on 09-09-2005 at 12:17 PM
RE: nick changer on timer - by RaceProUK on 09-09-2005 at 01:14 PM
RE: nick changer on timer - by doremi on 09-11-2005 at 03:09 PM
RE: nick changer on timer - by Ezra on 09-11-2005 at 03:55 PM
RE: nick changer on timer - by matty on 09-11-2005 at 07:28 PM
RE: nick changer on timer - by J-Thread on 09-11-2005 at 08:31 PM
RE: nick changer on timer - by doremi on 09-12-2005 at 12:18 PM
RE: nick changer on timer - by RaceProUK on 09-12-2005 at 12:24 PM
RE: nick changer on timer - by basambora on 09-29-2005 at 04:20 AM
RE: nick changer on timer - by doremi on 09-30-2005 at 09:53 AM
RE: nick changer on timer - by J-Thread on 09-30-2005 at 01:36 PM
RE: nick changer on timer - by doremi on 10-01-2005 at 12:55 AM
RE: nick changer on timer - by J-Thread on 10-01-2005 at 08:10 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