What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Tutorial, but better isnt a bad idea is it?

Tutorial, but better isnt a bad idea is it?
Author: Message:
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: Tutorial, but better isnt a bad idea is it?
quote:
Originally posted by DennisMartijn
oke thanks, and how would this code (OnEvent_ContactSignin(
    [string] Email
); 
) be when this email adress is filled in: dennis.kleinman@hccnet.nl?
does there has to be some '' thingies in it? yes i know i can find it in the library, thanks for that but not right now...

Just to answer your question...

If you wanted something to trigger when dennis.kleinman@hccnet.nl signs in, then you would use the following code...

code:
OnContact_Signin(Email) {
if (Email = "dennis.kleinman@hccnet.nl") {
//the code that is triggered
}
}

I am going to assume that you know how to do some basic programming in other languages.

When you declare a function you have parameters, for example, in php:

code:
<?
function ExampleFunction($variable) {
echo $variable;
}
?>

then you could call the function as so

code:
ExampleFunction("hello")

and it would echo the world hello.

So OnEvent_ContactSignin is triggered when a contact signs in, and so messenger plus would run your code and do this:

code:
OnEvent_ContactSignin("dennis.kleinman@hccnet.nl")

then your code would be triggered and dennis.kleinman@hccnet.nl would become the variable Email.

I hope that helps.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
10-02-2006 05:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tutorial, but better isnt a bad idea is it? - by DennisMartijn on 10-02-2006 at 01:22 PM
RE: Tutorial, but better isnt a bad idea is it? - by CookieRevised on 10-02-2006 at 01:49 PM
RE: Tutorial, but better isnt a bad idea is it? - by DennisMartijn on 10-02-2006 at 03:18 PM
RE: Tutorial, but better isnt a bad idea is it? - by CookieRevised on 10-02-2006 at 03:35 PM
RE: Tutorial, but better isnt a bad idea is it? - by J-Thread on 10-02-2006 at 05:05 PM
RE: Tutorial, but better isnt a bad idea is it? - by saralk on 10-02-2006 at 05:35 PM
RE: RE: Tutorial, but better isnt a bad idea is it? - by CookieRevised on 10-02-2006 at 05:41 PM
RE: Tutorial, but better isnt a bad idea is it? - by DennisMartijn on 10-05-2006 at 02:59 PM
RE: RE: Tutorial, but better isnt a bad idea is it? - by CookieRevised on 10-07-2006 at 11:24 PM
RE: Tutorial, but better isnt a bad idea is it? - by hmaster on 10-05-2006 at 03:08 PM
RE: Tutorial, but better isnt a bad idea is it? - by DennisMartijn on 10-05-2006 at 03:13 PM
RE: Tutorial, but better isnt a bad idea is it? - by RaceProUK on 10-06-2006 at 10:18 AM
RE: Tutorial, but better isnt a bad idea is it? - by ins4ne on 10-06-2006 at 10:37 AM
RE: Tutorial, but better isnt a bad idea is it? - by Jesus on 10-06-2006 at 12:09 PM
RE: Tutorial, but better isnt a bad idea is it? - by -dt- on 10-06-2006 at 12:29 PM
RE: Tutorial, but better isnt a bad idea is it? - by DennisMartijn on 10-06-2006 at 04:47 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