What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need help - Bold characters in toast

Need help - Bold characters in toast
Author: Message:
J3ck
New Member
*


Posts: 4
Joined: Jul 2006
O.P. Need help - Bold characters in toast
Hi all :)

I try to do a little script for MsgPlusLive! but, i've a little problem with "MsgPlus.DisplayToast".

I would like to write in the toast in bold characters...but i can't.When i put "<b></b>" in the script or they appear in my toast. :\
Have you a  little solution for me please? ^^

Thx :)
07-05-2006 01:15 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Need help - Bold characters in toast
[b][/b] is what you should be using rather than <b></b>.  You have to use BBcode rather than HTML
[Image: markee.png]
07-05-2006 01:21 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Need help - Bold characters in toast
The [b] stuff will only be parsed in DisplayToastContact though :)
07-05-2006 01:33 PM
Profile PM Find Quote Report
J3ck
New Member
*


Posts: 4
Joined: Jul 2006
O.P. RE: Need help - Bold characters in toast
Thx for your reply Markee :)

I tried what you say to me but...

Example :


code:
var Message = Name + "SignOut";



it's ok but i don't have bold characters...normal ^^

But if i put [/b] as you say me...

example :

code:
var Message = [b]Name
+ "SignOut";

or

var Message = +Name + + "SignOut";

or

var Message = ''Name' + "SignOut";

or

var Message = '' + Name '' + "SignOut";



It doesn't work...
I tried all solutions that you can see...i don't understand :(

This post was edited on 07-05-2006 at 01:37 PM by J3ck.
07-05-2006 01:37 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Need help - Bold characters in toast
As I said, you need to use DisplayToastContact instead of DisplayToast.

This post was edited on 07-05-2006 at 01:40 PM by deAd.
07-05-2006 01:39 PM
Profile PM Find Quote Report
J3ck
New Member
*


Posts: 4
Joined: Jul 2006
O.P. RE: Need help - Bold characters in toast
Thx Dead for reply :)

If i use "MsgPlusDisplayToastContact" the toast don't appear... :-S I don't understand why.

For example, if i use the script that we find in the msgplusscript documentation :

code:
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.DisplayToastContact("", Message);
    }
}


and if i change the line o displaytoast... for displaytoastcontact...it doesn't work. :S

This post was edited on 07-05-2006 at 01:48 PM by J3ck.
07-05-2006 01:43 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Need help - Bold characters in toast
DisplayToastContact has two lines.

code:
MsgPlus.DisplayToastContact("Title","First Line","Second Line");
07-05-2006 01:58 PM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Need help - Bold characters in toast
As deAd said, you have to use the DisplayToastContact rather than just DisplayToast like in the code below.  DisplayToastContact goes in the following order -  title,unformatted line,formatted line, sound,......

In DisplayToast it is missing the unformatted line so you won't be able to bold it.  An example of it in use is below, it is for blocking a contact an having their emil be bolded in a toast when you do :P
code:
function OnEvent_ContactBlocked(Email)
{
var Message = "<b>" + Email + "</b>"
  MsgPlus.DisplayToastContact("",Message,"",'notify.mp3')
}


NB. I wrote the bold in HTML rather than BBcode because I don't know how to turn this off :P

This post was edited on 07-05-2006 at 02:20 PM by markee.
[Image: markee.png]
07-05-2006 02:15 PM
Profile PM Find Quote Report
J3ck
New Member
*


Posts: 4
Joined: Jul 2006
O.P. RE: Need help - Bold characters in toast
It's wonderfull!! Thank you very much to Markee and Dead, it's nice to helped me quickly :)
Now i can continue my script with "no stress" ^^
Thx again :)
07-05-2006 02:25 PM
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