What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Line 6: can someone fix this?

Line 6: can someone fix this?
Author: Message:
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. Line 6: can someone fix this?
___________________________________________________________

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!!!
07-24-2006 08:26 AM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: Line 6: can someone fix this?
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.

This post was edited on 07-24-2006 at 08:40 AM by alexp2_ad.
07-24-2006 08:37 AM
Profile E-Mail PM Find Quote Report
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. RE: Line 6: can someone fix this?
yes, thanks. ill do...
07-24-2006 08:42 AM
Profile E-Mail PM Find Quote Report
Intosia
Junior Member
**

Avatar
I'm dynamic ^^

Posts: 78
40 / Male / –
Joined: Mar 2004
RE: Line 6: can someone fix this?
This example is exacly in the documentation....
07-24-2006 06:26 PM
Profile E-Mail PM Web Find Quote Report
« 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