What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request]Help B4 I Go INSANE

Pages: (2): « First « 1 [ 2 ] Last »
[Request]Help B4 I Go INSANE
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [Request]Help B4 I Go INSANE
a timer like MsgPlus.AddTimer([string] TimerId, [number] Elapse) ?
11-01-2007 05:50 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Request]Help B4 I Go INSANE
For a timer, you need to first create one:
code:
MsgPlus.AddTimer(/* TIMERID */ "MyTimer", /* ELAPSE (in ms) */ 100);
and have an event for it:
code:
function OnEvent_Timer(TimerId) {
   switch(TimerId) {
      case "MyTimer":
         /* Do stuff here */
         MsgPlus.AddTimer("MyTimer", 100); //Optionally, you can create a loop by re-adding the timer
         break;
   }
}

Of course, you can have multiple timers, like "MyTimer" and "MyOtherTimer". To make those work, call MsgPlus.AddTimer whenever you want for one of them and add a "case"-statement to the "switch"-block in the OnEvent_Timer function. ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-01-2007 08:35 AM
Profile E-Mail PM Web Find Quote Report
waynewilson2
Junior Member
**

Avatar

Posts: 55
Joined: Oct 2007
O.P. RE: [Request]Help B4 I Go INSANE
lol, ok, tyvm :D
[Image: waynewilson2@hotmail.com-12.png]
11-01-2007 07:36 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] 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