Shoutbox

[need help] login play music - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [need help] login play music (/showthread.php?tid=70791)

[need help] login play music by turvas on 01-17-2007 at 07:52 PM

i have a script that is supposed to play a music fle when i login, but it won't work. Help, please. 8-|

code:

function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Signin
{
[boolean] PlaySound(
    ["\C:\Documents and Settings\Karl\My Documents\My Music\Herald - Hevilihas.mp3"] Soundfile
    ["2500"] MaxPlaytime
    );
}

function OnEvent_Uninitialize(MessengerExit)
{
}



RE: [need help] login play music by FineWolf on 01-17-2007 at 07:53 PM

Try

code:
function OnEvent_Signin(Email)
{
MsgPlus.PlaySound("C:\\Documents and Settings\\Karl\\My Documents\\My Music\\Herald - Hevilihas.mp3", 2500);
}

RE: [need help] login play music by matty on 01-17-2007 at 07:54 PM

code:
function OnEvent_SigninReady(sEmail){
    MsgPlus.PlaySound('\\C:\\Documents and Settings\\Karl\\My Documents\\My Music\\Herald - Hevilihas.mp3', 2500);
}

RE: [need help] login play music by turvas on 01-18-2007 at 02:57 PM

it still isn't working...
i keep on trieing but more help would be appreciated.


RE: [need help] login play music by NanaFreak on 01-18-2007 at 03:02 PM

code:
function OnEvent_SigninReady(sEmail){
    MsgPlus.PlaySound('\C:\\Documents and Settings\\Karl\\My Documents\\My Music\\Herald - Hevilihas.mp3', 2500);
}

i think that should do it ;)
RE: [need help] login play music by Felu on 01-18-2007 at 04:09 PM

quote:
Originally posted by NanaFreak
code:
function OnEvent_SigninReady(sEmail){
    MsgPlus.PlaySound('\C:\\Documents and Settings\\Karl\\My Documents\\My Music\\Herald - Hevilihas.mp3', 2500);
}

i think that should do it [Image: msn_wink.gif]
Nope... Matty's code is right and should work. MsgPlus.PlaySound having a limitation of stoping any existing sounds when played might be causing it.