What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Noob question

[Help] Noob question
Author: Message:
Mothuim
New Member
*


Posts: 14
Joined: Jul 2006
O.P. [Help] Noob question
Hi all i've been using vb.net for about a year and now i'm learning Jscript to make a script for plus but i've gotten stuck on something which is probably very very easy.

I've made a toast and a window which i can add controls in like labels and buttons. But i want to have a variable in that window/toast but i don't know the syntax for it. My interface is defined in scriptinfo.xml, does my variable have to be in there? or can i do it via the script?


Thanks
07-11-2006 03:40 PM
Profile E-Mail PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: [Help] Noob question
Easy, it is the use of quotation marks and the '+' symbol:

code:
var Name = ''Mothuim';
MsgPlus.DisplayToast("Hello World", "Hello " + Name + " welcome to Windows Live Messenger");
07-11-2006 03:44 PM
Profile PM Find Quote Report
Mothuim
New Member
*


Posts: 14
Joined: Jul 2006
O.P. RE: [Help] Noob question
I'm sure i tried that before! But thanks it works for toasts. Whats the syntax for changing a caption of a label in an interface?
07-11-2006 03:54 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Help] Noob question
quote:
Originally posted by Mothuim
I'm sure i tried that before! But thanks it works for toasts. Whats the syntax for changing a caption of a label in an interface?

PlusWnd.SetControlText('TestLabelId', 'Text');
07-11-2006 04:04 PM
Profile 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