What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » broken example script

broken example script
Author: Message:
jvlppm
Junior Member
**

Avatar

Posts: 89
Reputation: -4
Joined: Nov 2004
O.P. broken example script
quote:
function OnEvent_Signin(Email)
{
    var Message = "Hello Master " + Messenger.MyName + "!";
    Message = MsgPlus.RemoveFormatCodes(Message);
    MsgPlus.DisplayToast("", Message);
}

Now, you may think "hey, I'm the only master on this computer, I don't want the script to welcome others in this way".


this script does only works when i sign in, this function is not called when others came online


my function

function OnEvent_Signin(Email)
{
    Debug.Trace(Email + " entrou!");
    MsgPlus.DisplayToast("", Email + " entrou!");
}


i have nothing on debug when ppl sign in, only when i do

yes the script is activated
07-25-2006 01:42 AM
Profile E-Mail PM Find Quote Report
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: broken example script
That is the way it is supposed to work. If you want to find out when a contact signs in use this event:

code:
OnEvent_ContactSignin(
    [string] Email
);

[Image: clb2.jpg]
07-25-2006 01:44 AM
Profile E-Mail PM Web Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: broken example script
Well that is what the function is for... when you sign in. When other people sign in the function is:

quote:
Originally posted by Messenger Plus! live Scripting Documentation

OnEvent_ContactSignin(
    [string] Email
);


To get it to do what you want, you would use this code:

code:
function OnEvent_ContactSignin(Email)
{
Debug.Trace(Email + " entrou!");
MsgPlus.DisplayToast("", Email + " entrou!");
}

Cloudy

Edit: Why do I always get beaten to a reply :(

This post was edited on 07-25-2006 at 01:47 AM by cloudhunter.
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6714 days, 1 hour, 43 minutes, 3 seconds ago
07-25-2006 01:46 AM
Profile E-Mail PM Find Quote Report
jvlppm
Junior Member
**

Avatar

Posts: 89
Reputation: -4
Joined: Nov 2004
O.P. RE: broken example script
i see, but is not what the scripting documentation says...

if you read, it says that the function on the example works for everybody

and it shows a way to workarround it!

quote:
so let's change the OnEvent_Signin function to this:

function OnEvent_Signin(Email)
{
    if(Email == "your@email.com") //Change for your sign-in email
    {
        var Message = "Hello Master " + Messenger.MyName + "!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToast("", Message);
    }
}


This post was edited on 07-25-2006 at 01:49 AM by jvlppm.
07-25-2006 01:49 AM
Profile E-Mail PM Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: broken example script
When it says the function works for everybody, it means everybody that uses your messenger... It doesn't mean everyone that signs in while you are logged in. Use the code I showed you, it SHOULD work.

Cloudy

This post was edited on 07-25-2006 at 01:56 AM by cloudhunter.
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6714 days, 1 hour, 43 minutes, 3 seconds ago
07-25-2006 01:56 AM
Profile E-Mail PM Find Quote Report
jvlppm
Junior Member
**

Avatar

Posts: 89
Reputation: -4
Joined: Nov 2004
O.P. RE: RE: broken example script
quote:
Originally posted by cloudhunter
When it says the function works for everybody, it means everybody that uses your messenger... It doesn't mean everyone that signs in while you are logged in.
Cloudy


a ok

This post was edited on 07-25-2006 at 01:58 AM by jvlppm.
07-25-2006 01:57 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: broken example script
Did you read the scripting documentation?

[Image: attachment.php?pid=701912]

.gif File Attachment: OnEvent_SignIn.gif (35.45 KB)
This file has been downloaded 269 time(s).

This post was edited on 07-25-2006 at 02:25 AM by matty.
07-25-2006 02:25 AM
Profile E-Mail PM Find Quote Report
jvlppm
Junior Member
**

Avatar

Posts: 89
Reputation: -4
Joined: Nov 2004
O.P. RE: broken example script
reading in sequence, i did not reach that page when i posted here
07-25-2006 03:12 AM
Profile E-Mail PM 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