Shoutbox

[Help] Noob question - 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: [Help] Noob question (/showthread.php?tid=63050)

[Help] Noob question by Mothuim on 07-11-2006 at 03:40 PM

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


RE: [Help] Noob question by absorbation on 07-11-2006 at 03:44 PM

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");

RE: [Help] Noob question by Mothuim on 07-11-2006 at 03:54 PM

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?


RE: [Help] Noob question by Eljay on 07-11-2006 at 04:04 PM

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');