Line 6: can someone fix this? - 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: Line 6: can someone fix this? (/showthread.php?tid=63880)
Line 6: can someone fix this? by DennisMartijn on 07-24-2006 at 08:26 AM
___________________________________________________________
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_ContactSignin(
ruben_mud@hotmail.com Email
);
var Message = "Ruben Mud is online" + "!"; Message = MsgPlus.RemoveFormatCodes(Message); MsgPlus.DisplayToast("", Message);
[boolean] PlaySound( C:\Program Files\MSN Messenger\newalert.wma SoundFile [number,optional] MaxPlayTime );
function OnEvent_Uninitialize(MessengerExit)
{
}
___________________________________________________________
alright this is my script for so far, but there is a problem in line 6. the debugger says :
> Fout gedetecteerd in lijn 6: Voorwaardelijke compilatie is uitgeschakeld.
(Code: -2146827258)
"xxx compilation is disabled" in english, dunno what voorwaardelijke is to be translated.
the fault, problem is in the line where you see ruben_mud@hotmail.com as an email adres, it is an andres of one of my contacts. if you can, please fix this line.
you also see i want a toast to be displayed, and a sound to be played. if you know what to fill in by "[number,optional]", please do fill in.
and then theres a few facts: a. i cant speak egnlihs vrey wlel (alright kiddin') b. i dont know anymore facts.
Otherwise: HELP!!!
RE: Line 6: can someone fix this? by alexp2_ad on 07-24-2006 at 08:37 AM
OK, there's quite a lot wrong with that... I think you want more like...
code: function OnEvent_ContactSignin(Email){
if(Email == 'ruben_mud@hotmail.com'){
var Message = "Ruben Mud is online!";
MsgPlus.DisplayToast("Notification", Message);
MsgPlus.PlaySound('C:\Program Files\MSN Messenger\newalert.wma');
}
}
EDIT: You should try reading some other scripts and see what you pick up.
RE: Line 6: can someone fix this? by DennisMartijn on 07-24-2006 at 08:42 AM
yes, thanks. ill do...
RE: Line 6: can someone fix this? by Intosia on 07-24-2006 at 06:26 PM
This example is exacly in the documentation....
|