Shoutbox

nick changer on timer - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: nick changer on timer (/showthread.php?tid=50259)

nick changer on timer by aravinda on 09-09-2005 at 12:05 PM

this sorta topic must have been posted often, but im looking for a plug'in:

remember that program myswetnix? for those of u that dont: it was a program whereby u enter a bunch of nics and the program changes them at an intervel (eg. 1 sec, 5 sec, etc) that you define. now this was compatible with msn5 if i recall correctly. im looking for something that goes with the new one.

just lemme know if a program exists. thanx.


RE: nick changer on timer by qgroessl on 09-09-2005 at 12:11 PM

I'm not sure if it exists... The only problem I can think of is this: That MSN now limits the amount of nick changes in a minute. Now, I'm sure somebody could make it for you though... It's just that there's have to be a bit longer intervals.


RE: nick changer on timer by (CyBeRDuDe) on 09-09-2005 at 12:17 PM

This can easily be done.. And I was supposed to make a complete Nick name plugin for you guys.. But been too busy the past 2-3 months....
Well... The limit is 10 changes per minute.. So that is a change for evyer 6 seconds... More than enough to make it a pain in the ass for other users... But well.. The plugin wouldn't requiere much work, and not much skills either...


RE: nick changer on timer by RaceProUK on 09-09-2005 at 01:14 PM

It's not a change every 6 seconds strictly, and I think continually changing the nickname that quickly can get annoying, especially for those that use Plus!'s contact name change notifications.


RE: nick changer on timer by doremi on 09-11-2005 at 03:09 PM

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
RE: nick changer on timer by Ezra on 09-11-2005 at 03:55 PM

maybe because it starts with an elseif?

Not sure, just thinking out loud :P

And not knowing VB only PHP :P


RE: nick changer on timer by matty on 09-11-2005 at 07:28 PM

Matty's reply to How to start off a plugin and how to make it simply change your name


RE: nick changer on timer by J-Thread on 09-11-2005 at 08:31 PM

I'll make a plugin like this ASAP...


RE: nick changer on timer by doremi on 09-12-2005 at 12:18 PM

It can work, but only change nickname ONCE!!

I think use PeekMessage and get WM_TIMER could change nickname per minute.

Anybody could help me? Please!! ;)


RE: nick changer on timer by RaceProUK on 09-12-2005 at 12:24 PM

Is this code in your own window procedure or not?


RE: nick changer on timer by basambora on 09-29-2005 at 04:20 AM

I'm not sure, but mayber you should create a timer and an eventhandler for that so that it triggers the event each timer after a certain amount of time (that's how it works in C#)


RE: nick changer on timer by doremi on 09-30-2005 at 09:53 AM

hi,

I've been modified the code,
I use Messenger Plus! 's sample, and do this :

code:

  else if(stricmp(sCommand,"/xtest") == 0)
  {             
    HANDLE h;
    DWORD tid;
    char name[128];
    h=CreateThread(0,0,(LPTHREAD_START_ROUTINE)countTime,(VOID*)name,0,&tid);
   
    return TRUE;
   }

void countTime(char *szTime)
{
  SYSTEMTIME st;
  GetLocalTime(&st);
  wsprintf(szTime,"%02d:%02d:%02d",st.wHour,st.wMinute,st.wSecond);
  SetNewName(szTime);
  Sleep(1000);
}



But it doesn't work well, when I type /xtest,  my MSN will CRASH!

Help me!  Thanks!!


RE: nick changer on timer by J-Thread on 09-30-2005 at 01:36 PM

I've made the plugin in C# and it's working properly, just got some problems installing it at windows 98 machines...


RE: nick changer on timer by doremi on 10-01-2005 at 12:55 AM

hi, J-Thread,

Could you share your source code for me?
Please! Please! Please! Please! Please!
Thanks! Thanks! Thanks! Thanks!


RE: nick changer on timer by J-Thread on 10-01-2005 at 08:10 AM

Euhm...nope... But I'll give you a few parts of it.

code:
public bool Initialize(long nVersion, string sUserEmail, MessengerAPI.MessengerClass oMessenger)
{
    Timer tmr = new Timer();
    tmr.Interval = 1000 * 10; // 10 seconds
    tmr.Tick += new EventHandler(Timer_tick);
    tmr.Start();
}

private void Timer_tick(object sender, EventArgs e)
{
    if(names.Count > 0)
    {
        next++;
        if(next >= namen.Count)
        {
            next = 0;
        }
       SetNewName(names[next].ToString());
    }
}

Where names is an arraylist containing the names. Off course there is an option to turn it on and off, but this is the main part.