What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » MsgPlus windows: problem with close button

MsgPlus windows: problem with close button
Author: Message:
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
34 / Male / Flag
Joined: Feb 2007
O.P. MsgPlus windows: problem with close button
This is the code I made to make the Close buttons work:
code:
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
    if(ControlId == "BtnClose")
        Wnd.Close(1);
}


I've made 2 XML files, one for each window, and both are EXACTLY the same (for testing purposes). However, the script to Close the windows that pasted above only works for one of the windows.

Do you know why this might be?

This post was edited on 07-22-2010 at 05:38 AM by macgyver08.
07-22-2010 05:38 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: MsgPlus windows: problem with close button
Are both windows called WndTest? You'd need to make a new function if not :p
<Eljay> "Problems encountered: shit blew up" :zippy:
07-22-2010 05:43 AM
Profile PM Find Quote Report
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
34 / Male / Flag
Joined: Feb 2007
O.P. RE: RE: MsgPlus windows: problem with close button
quote:
Originally posted by Spunky
Are both windows called WndTest? You'd need to make a new function if not :p

No. Two files, 2 different window IDs. One is "WndTest" and the other "WndTest2".

Edit:
Oh, you said "if not". I apologize haha. Thanks for the help! And sorry for such a silly question.

This post was edited on 07-22-2010 at 05:47 AM by macgyver08.
07-22-2010 05:44 AM
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