What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Adding labels to a window via script

Adding labels to a window via script
Author: Message:
Fuzzylama
New Member
*


Posts: 4
Joined: Apr 2008
O.P. Adding labels to a window via script
Hi
Im trying my script to create a window with different labels, but the number of labels differs each time the window is opened. Is there any function or other option to solve this?
04-05-2008 12:33 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Adding labels to a window via script
The only current solution for this is to write the window xml just before the window is created, store the xml in a temporary file, create the window from the temporary file, then delete the file right after the window is created. :)
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
04-05-2008 12:39 PM
Profile E-Mail PM Web Find Quote Report
Fuzzylama
New Member
*


Posts: 4
Joined: Apr 2008
O.P. RE: Adding labels to a window via script
I wondered about doing it like that but i thought there must be a better solution...:( Bu if there is no other way...
thx for reply
Fuzzylama
04-05-2008 03:10 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Adding labels to a window via script
Probably I will add in a suggestion to add a scripting feature to add Plus window components on runtime, for a new Plus version. :)
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
04-05-2008 03:13 PM
Profile E-Mail PM Web Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: Adding labels to a window via script
You could always just create a number of invisible labels in your xml file then set them to visible via your script as needed.
04-05-2008 03:22 PM
Profile PM Find Quote Report
Fuzzylama
New Member
*


Posts: 4
Joined: Apr 2008
O.P. RE: Adding labels to a window via script
quote:
Originally posted by Volv
You could always just create a number of invisible labels in your xml file then set them to visible via your script as needed.
I need to change the content of the labels so ive to create the window in the script. I've written the script now and the file is created, but the window is not... I think the problem is, that its not written in unicode is it possible to write a file in unicode with opentextfile()??
04-06-2008 07:35 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Adding labels to a window via script
Changing the text on a label is easy from runtime: just use Wnd.SetControlText("labelId", "Text");...?

And additionally:
  • OpenTextFile Method
    object.OpenTextFile(filename[, iomode[, create[, format]]])
    Arguments

    (...)

    format

        Optional. One of three Tristate values used to indicate the format of the opened file. If omitted, the file is opened as ASCII.

    The format argument can have any of the following settings:

    [Image: vyuve0.png]

  • CreateTextFile Method

This post was edited on 04-06-2008 at 08:26 PM by mynetx.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
04-06-2008 08:22 PM
Profile E-Mail PM Web Find Quote Report
Fuzzylama
New Member
*


Posts: 4
Joined: Apr 2008
O.P. RE: Adding labels to a window via script
ah ok thx!
04-07-2008 12:46 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