What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Q about PlaySound()

Q about PlaySound()
Author: Message:
hakxx
New Member
*


Posts: 5
36 / Male / Flag
Joined: May 2010
O.P. RE: Q about PlaySound()
code:
function OnGetScriptMenu(Location)
{
    var ScriptMenu = "<ScriptMenu>";
    ScriptMenu    +=     "<MenuEntry Id=\"s1">sound1</MenuEntry>";

    ScriptMenu    += "</ScriptMenu>";
   
    return ScriptMenu;
}


function OnEvent_MenuClicked(sMenuId, nLocation, iOriginWnd) {
if (sMenuId=="s1"){
DownloadUpdateFile("http://ex.com/001.mp3");
}
}


function DownloadUpdateFile(sFile)
{
        var Started = MsgPlus.DownloadFile(sFile);
        if(Started)
                Debug.Trace("Downloading file, waiting for event");
        else     
                Debug.Trace("Couldn't start the download");
}


function OnEvent_DownloadFileComplete(Url, OutFile, Success)
{
        Debug.Trace("DownloadFileComplete event received for " + Url);
        Debug.Trace("   Success: " + Success);
        if(Success)
        {
                MsgPlus.PlaySound(OutFile);
        }
}


^^ it this code true ?

Thank you very very much  :$

This post was edited on 05-12-2010 at 12:00 AM by hakxx.
05-11-2010 11:58 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Q about PlaySound() - by hakxx on 05-11-2010 at 02:52 PM
RE: Q about PlaySound() - by matty on 05-11-2010 at 02:57 PM
RE: Q about PlaySound() - by hakxx on 05-11-2010 at 03:51 PM
RE: Q about PlaySound() - by matty on 05-11-2010 at 04:40 PM
RE: Q about PlaySound() - by hakxx on 05-11-2010 at 04:45 PM
RE: Q about PlaySound() - by matty on 05-11-2010 at 05:27 PM
RE: Q about PlaySound() - by hakxx on 05-11-2010 at 11:58 PM
RE: Q about PlaySound() - by Matti on 05-12-2010 at 11:29 AM
RE: Q about PlaySound() - by matty on 05-12-2010 at 01:44 PM
RE: Q about PlaySound() - by hakxx on 05-13-2010 at 06:07 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