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

Pages: (2): « First « 1 [ 2 ] Last »
Code for script with sounds
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Code for script with sounds
code:
var ChatWnds = new Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
    if(Message == "Razzia"){
        ChatWnd.SendMessage("/sound Dj Zany - Razzia");
        ChatWnds[ChatWnds.length-1] = ChatWnd;
        MsgPlus.AddTimer("Delay1"+[ChatWnds.length-1], 12000);
    }
}

function OnEvent_Timer(TimerId){
    switch(TimerId.substr(0,6)){
        case "Delay1":
            ChatWnds[TimerId.substr(6)].SendMessage("/sound Dj Zany - Razzia 2");
            MsgPlus.AddTimer("Delay2"+[TimerId.substr(6)], 12000);
        break;
        case "Delay2":
            ChatWnds[TimerId.substr(6)].SendMessage("/sound Dj Zany - Razzia 3");
        break;
    }
}

There you go!

This post was edited on 01-28-2007 at 11:59 AM by Felu.
01-28-2007 11:57 AM
Profile E-Mail PM Web Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: Code for script with sounds
Good job Felu! :)
01-28-2007 12:01 PM
Profile E-Mail PM Find Quote Report
Jumpfreakske
Junior Member
**

Avatar
Hardstyle!!!

Posts: 62
Reputation: -7
31 / Male / Flag
Joined: Jan 2007
O.P. RE: Code for script with sounds
Oke, it works, But I have a case where their are 6 sounds:
So when you typ a word, it wil send 6 sounds with delays.

But what if the person wants to stop those sounds after 3 or 4, or when he want to here something else.
because now he has to close the chatwindow to stop the sounds from playing, so I need something like this:

if message === QUIT
then do following thing:  stop sounds!

can anyone make this for me?
01-29-2007 09:48 PM
Profile E-Mail PM Web 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