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

[Error] AddTimer
Author: Message:
Luca
New Member
*


Posts: 11
34 / Male / Flag
Joined: Nov 2007
O.P. RE: [Error] AddTimer
Great...the script works...:D
Thank Huhu_Manix and vikke...I solve the problem in this way,naturally with your help...
code:
function send_emoticon(wnd)
{
    if(wnd.EditChangeAllowed==true)
     {
         Emoticons = Messenger.CustomEmoticons;
         e = new Enumerator(Emoticons);
         the_wnd = wnd;  // copia l'oggetto finestra
         OnEvent_Timer("timer_name"); // lancia il ciclo
     }
}

function OnEvent_Timer(timer)
{
    if(timer == "timer_name")
    {
        var smile="";
        for(var i = 0; !e.atEnd()&&i<5; e.moveNext(), i++)smile=smile+" "+e.item().Shortcut;
         the_wnd.SendMessage(smile); // invia 5 smilies per volta
         Debug.Trace(smile);
            if(!e.atEnd())MsgPlus.AddTimer("timer_name", 4000); // chiama nuovamente l'evento Timer
    }
}

I highlighted your only forgetfulness...

I hope to learn more in this forum...:D
11-11-2007 10:34 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Error] AddTimer - by Luca on 11-10-2007 at 08:14 PM
RE: [Error] AddTimer - by vikke on 11-10-2007 at 08:26 PM
RE: [Error] AddTimer - by Luca on 11-10-2007 at 09:04 PM
RE: [Error] AddTimer - by Huhu_Manix on 11-10-2007 at 10:58 PM
RE: RE: [Error] AddTimer - by vikke on 11-10-2007 at 11:49 PM
RE: [Error] AddTimer - by Luca on 11-11-2007 at 10:34 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