Shoutbox

How to use Personal Nick with an Msagent - 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: How to use Personal Nick with an Msagent (/showthread.php?tid=74780)

How to use Personal Nick with an Msagent by shadetoll on 05-28-2007 at 01:49 PM

hi,

Sry, if it's already existing post but I didn't find one.


I'm using a Ms Agent for alert Messenger.

Like OnEvent_ContactSignin ....



But i've a problem with "Messenger.MyContacts.GetContact(Email)"

code:
function OnEvent_ContactSignin(Email){
var contact = Email;
signedincontact = Messenger.MyContacts.GetContact(contact);
    if(signedincontact.Blocked!=true){
        merlin.Show();
        merlin.Play("GetAttention");
        merlin.Play("GetAttentionReturn");
        merlin.Play("RestPose");
        merlin.Speak(signedincontact.Name+" s'est connecté.");
        merlin.Hide();
    }
}


Because it gives me "[38]j[/38]igaan[38] ....

And I would have only  my personnal Nickname that i've given to some friends.

Who uses special character.


Ty for your help.
RE: How to use Personal Nick with an Msagent by Veggie on 05-28-2007 at 02:06 PM

look up: MsgPlus.RemoveFormatCodes()

quote:
The MsgPlus::RemoveFormatCodes function removes Messenger Plus! Live formatting attributes from a string.

You can't access messengers personalised nicknames through scripts.

RE: How to use Personal Nick with an Msagent by shadetoll on 05-28-2007 at 02:13 PM

tks

and for smiley ?


Can I say that i must ignore char like  { _ - [  .... ?