What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Code for script with sounds

Code for script with sounds
Author: Message:
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: Code for script with sounds
Yes, this is perfectly possible using timers.

Use MsgPlus.AddTimer(TimerId, Elapse) to create a timer called TimerId which lasts for Elapse milliseconds (1/1000 of a second). When the timer expires, the event OnEvent_Timer(TimerId) will be called.

For example, to delay for 12 seconds then do something, you might use:
code:
MsgPlus.AddTimer("Delay", 12000);

function OnEvent_Timer(TimerId) {
   if (TimerId == "Delay") {
      // Do something!
   }
}
Hopefully my explanation is understandable. If you still have problems, you might want to have a read of the scripting documentation.
01-28-2007 06:26 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Code for script with sounds - by Jumpfreakske on 01-27-2007 at 03:50 PM
RE: Code for script with sounds - by phalanxii on 01-28-2007 at 06:26 AM
RE: Code for script with sounds - by Jumpfreakske on 01-28-2007 at 09:27 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 09:32 AM
RE: Code for script with sounds - by Menthix on 01-28-2007 at 11:10 AM
RE: Code for script with sounds - by Jumpfreakske on 01-28-2007 at 11:12 AM
RE: Code for script with sounds - by NanaFreak on 01-28-2007 at 11:18 AM
RE: Code for script with sounds - by Felu on 01-28-2007 at 11:21 AM
RE: Code for script with sounds - by Matti on 01-28-2007 at 11:28 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 11:54 AM
RE: Code for script with sounds - by Felu on 01-28-2007 at 11:57 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 12:01 PM
RE: Code for script with sounds - by Jumpfreakske on 01-29-2007 at 09:48 PM


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