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:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Code for script with sounds
code:
function OnEvent_ChatWndReceiveMessage(Origin, ChatWnd, Message){
ChatWindow = ChatWnd
  if(Origin != Messenger.MyName && Message == "Razzia"){
    ChatWindow.SendMessage("/sound Dj Zany - Razzia");
    MsgPlus.AddTimer("Delay1", 12000 /*length of sound*/);
  }
}

function OnEvent_Timer(TimerId){
  if(TimerId == "Delay1"){
    ChatWindow.SendMessage("/sound Dj Zany - Razzia 2");
    MsgPlus.AddTimer("Delay2", 12000 /*length of sound*/);
  }
  if(TimerId == "Delay2"){
    ChatWindow.SendMessage("/sound Dj Zany - Razzia 3");
  }
}

i am quite sure that should work... you just have to make the 12000 the length of the sound (as i have said in the code)

quote:
Originally posted by Felu
NanaFreak: What if two contacts send Razzia one after the other? Wouldn't ChatWindow be changed?
woops :S can you make my code work around that (a) seeing as its like almost my BDay

This post was edited on 01-28-2007 at 11:24 AM by NanaFreak.
01-28-2007 11:18 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