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. [Error] AddTimer
Hi boys... :D
Excuse me for my english but I am italian and so I don't speak very well...
I have a problem with the AddTimer function...I realized a script that send all my emoticons to a contact when i write "invia_emoticons"...I send the emoticons one at a time because the limit for a message is 5 emoticons...
when i send the emoticons,only some emoticons was send..In my opinion this problem is caused by the different of the speed between the processing of the data and processing of the send of data..
OK...so i think to add the AddTimer between a send and other...
But i see that this function isn't execute...
the code of the function is:
code:
function send_emoticon(wnd)
{
       
       var smile="";
       var Emoticons = Messenger.CustomEmoticons;
       var e = new Enumerator(Emoticons);
       var Emoticon;
       if(wnd.EditChangeAllowed==true)
       {
               for(; !e.atEnd(); e.moveNext())
               {
                       MsgPlus.AddTimer("timer",5000);
                       Emoticon = e.item();
                       smile=" "+Emoticon.Shortcut;
                       Debug.Trace(smile);
                       wnd.SendMessage(smile);
               }
       }
}

function onEvent_Timer(timer)
{
}

the output of the debug is:
code:
):)
Funzione chiamata: OnEvent_ChatWndSendMessage
-_-1
Funzione chiamata: OnEvent_ChatWndSendMessage
-_^
Funzione chiamata: OnEvent_ChatWndSendMessage
.muha.
Funzione chiamata: OnEvent_ChatWndSendMessage
2CRY
Funzione chiamata: OnEvent_ChatWndSendMessage
2MALE
Funzione chiamata: OnEvent_ChatWndSendMessage
2O_O
Funzione chiamata: OnEvent_ChatWndSendMessage
2SBAVAA
Funzione chiamata: OnEvent_ChatWndSendMessage
3@:
Funzione chiamata: OnEvent_ChatWndSendMessage
3O_O
Funzione chiamata: OnEvent_ChatWndSendMessage
:L
Funzione chiamata: OnEvent_ChatWndSendMessage
;D
Funzione chiamata: OnEvent_ChatWndSendMessage
@:
Funzione chiamata: OnEvent_ChatWndSendMessage
ADDIO
Funzione chiamata: OnEvent_ChatWndSendMessage
ADORE
Funzione chiamata: OnEvent_ChatWndSendMessage
AFFRANT
Funzione chiamata: OnEvent_ChatWndSendMessage
AMMONIT
ANNOIO
ARGHARG

you can see that only the first emoticons are print...Why there isn't in the output of the debug Funzione chiamata: OnEvent_Timer...why don't the timer stop for 5 second the excute of the program?
11-10-2007 08:14 PM
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