What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Scripting API Wishlist

Scripting API Wishlist
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Scripting API Wishlist
quote:
Originally posted by SmokingCookie
As in .NET programming? Like MyForm.BtnHello = new Button(); or something?
Perhaps not actually creating controls, but acquiring an object with control-specific methods, properties and ideally events as well.
js code:
var MyWnd = MsgPlus.CreateWnd("Interfaces.xml", "MyWnd");
// Acquire control object for a ListViewControl
var LvFiles = MyWnd.GetControl("LvFiles");
// Methods
LvFiles.AddItem("alpha.txt");
LvFiles.AddItem("beta.txt");
// Properties
Debug.Trace("Item count: "+LvFiles.ItemCount); // = 2
// Events
LvFiles.AddEventHandler("Clicked", OnLvFilesEvent_Clicked);
LvFiles.AddEventHandler("SelStateChange", function(ItemIdx, SelectedState) {
    Debug.Trace("Item #"+ItemIdx+" selection state changed to "+SelectedState);
    Debug.Trace("Item data: " + this.GetItemData(ItemIdx) );
});
Of course, all of this is nothing more than an early proposal. Here are my thoughts:
  • I believe it would be better to pass event callbacks as function objects instead of function names to prevent global scope saturation.
  • The "this" context inside the event callback could be set to the control object. By doing so, you don't need to pass PlusWnd and ControlId as parameters to the function, you could access everything through the control object itself. If you still need the window or the control ID, the control object could have properties such as Control::Parent and Control::ControlId.
I don't say it has to be this way, it's just something which could be considered.
quote:
Originally posted by NanaFreak
how about much better dynamic window support? like not having to have it as a xml then edit the xml to change the window?
Certainly, I believe that the new scripting environment should provide sufficient window and control support to remove the need of in-runtime XML rewriting. Matty has already informed me that this is high on his wish list. CodeEditControls and MenuButtonControls urgently need an API - they simply cannot be modified through code in Plus! 4. Ideally, methods could be added to natively (without Win32 API) handle DateTimeControls, HotkeyControls, ProgressControls, ScrollBarControls, SliderControls, SpinControls and TreeViewControls.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
05-14-2010 09:30 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scripting API Wishlist - by saralk on 08-31-2006 at 06:31 PM
RE: Scripting API Wishlist - by Dempsey on 08-31-2006 at 06:34 PM
RE: Scripting API Wishlist - by Matti on 08-31-2006 at 06:35 PM
RE: Scripting API Wishlist - by saralk on 08-31-2006 at 06:37 PM
RE: Scripting API Wishlist - by absorbation on 08-31-2006 at 06:56 PM
RE: Scripting API Wishlist - by pollolibredegrasa on 08-31-2006 at 07:06 PM
RE: Scripting API Wishlist - by Jesus on 08-31-2006 at 07:21 PM
RE: RE: Scripting API Wishlist - by pollolibredegrasa on 08-31-2006 at 07:31 PM
RE: RE: RE: Scripting API Wishlist - by Jesus on 08-31-2006 at 10:46 PM
RE: Scripting API Wishlist - by alexp2_ad on 08-31-2006 at 09:45 PM
RE: Scripting API Wishlist - by saralk on 08-31-2006 at 09:48 PM
RE: Scripting API Wishlist - by cloudhunter on 08-31-2006 at 09:50 PM
RE: Scripting API Wishlist - by matty on 08-31-2006 at 09:51 PM
RE: Scripting API Wishlist - by -dt- on 08-31-2006 at 10:37 PM
RE: RE: RE: Scripting API Wishlist - by CookieRevised on 08-31-2006 at 10:50 PM
RE: Scripting API Wishlist - by Mothuim on 08-31-2006 at 11:16 PM
RE: RE: Scripting API Wishlist - by Jedimark on 09-02-2006 at 09:21 AM
RE: Scripting API Wishlist - by saralk on 09-01-2006 at 09:17 AM
RE: Scripting API Wishlist - by CookieRevised on 09-01-2006 at 11:43 AM
RE: Scripting API Wishlist - by Pure_BY on 09-01-2006 at 02:44 PM
RE: Scripting API Wishlist - by Shondoit on 09-02-2006 at 09:06 AM
RE: Scripting API Wishlist - by Poom on 09-02-2006 at 09:39 AM
RE: Scripting API Wishlist - by Shondoit on 09-02-2006 at 12:02 PM
RE: Scripting API Wishlist - by markee on 09-02-2006 at 12:12 PM
RE: Scripting API Wishlist - by Ezra on 09-02-2006 at 04:40 PM
RE: Scripting API Wishlist - by Shondoit on 09-02-2006 at 09:10 PM
RE: Scripting API Wishlist - by deAd on 09-02-2006 at 10:38 PM
RE: Scripting API Wishlist - by NiteMare on 09-02-2006 at 11:11 PM
RE: Scripting API Wishlist - by Shondoit on 09-02-2006 at 11:16 PM
RE: Scripting API Wishlist - by phalanxii on 09-03-2006 at 03:43 AM
RE: Scripting API Wishlist - by wlmcrap on 09-03-2006 at 04:37 AM
RE: Scripting API Wishlist - by CookieRevised on 09-03-2006 at 02:15 PM
RE: Scripting API Wishlist - by Buzz44 on 09-03-2006 at 02:27 PM
RE: Scripting API Wishlist - by saralk on 09-03-2006 at 06:04 PM
RE: Scripting API Wishlist - by CookieRevised on 09-03-2006 at 07:10 PM
RE: Scripting API Wishlist - by saralk on 09-03-2006 at 07:38 PM
RE: Scripting API Wishlist - by CookieRevised on 09-06-2006 at 03:07 AM
RE: Scripting API Wishlist - by markee on 09-06-2006 at 03:27 AM
RE: RE: Scripting API Wishlist - by CookieRevised on 09-06-2006 at 06:22 AM
RE: Scripting API Wishlist - by matty on 09-06-2006 at 03:29 AM
RE: RE: Scripting API Wishlist - by markee on 09-06-2006 at 03:37 AM
RE: Scripting API Wishlist - by NiteMare on 09-06-2006 at 04:14 AM
RE: RE: Scripting API Wishlist - by alexp2_ad on 09-07-2006 at 06:16 PM
RE: RE: RE: Scripting API Wishlist - by markee on 09-06-2006 at 06:46 AM
RE: Scripting API Wishlist - by saralk on 09-06-2006 at 08:46 AM
RE: RE: Scripting API Wishlist - by markee on 09-06-2006 at 09:00 AM
RE: Scripting API Wishlist - by saralk on 09-07-2006 at 06:12 PM
RE: Scripting API Wishlist - by Shondoit on 09-10-2006 at 01:11 PM
RE: Scripting API Wishlist - by NanaFreak on 10-16-2006 at 07:11 AM
RE: RE: Scripting API Wishlist - by CookieRevised on 10-16-2006 at 06:46 PM
RE: RE: Scripting API Wishlist - by Jesus on 10-25-2006 at 09:24 PM
RE: Scripting API Wishlist - by NanaFreak on 10-25-2006 at 09:27 PM
RE: RE: Scripting API Wishlist - by Jesus on 10-25-2006 at 09:29 PM
RE: Scripting API Wishlist - by Plan-1130 on 10-25-2006 at 10:28 PM
RE: RE: Scripting API Wishlist - by Jesus on 10-25-2006 at 10:56 PM
RE: RE: Scripting API Wishlist - by Jesus on 10-27-2006 at 01:01 AM
RE: Scripting API Wishlist - by CookieRevised on 10-26-2006 at 12:13 AM
RE: Scripting API Wishlist - by deAd on 10-26-2006 at 12:53 AM
RE: Scripting API Wishlist - by CookieRevised on 10-26-2006 at 01:10 AM
RE: Scripting API Wishlist - by Plan-1130 on 10-26-2006 at 02:48 PM
RE: Scripting API Wishlist - by Plan-1130 on 10-27-2006 at 03:16 AM
RE: Scripting API Wishlist - by CookieRevised on 11-01-2006 at 09:42 AM
RE: Scripting API Wishlist - by Plan-1130 on 11-01-2006 at 07:29 PM
RE: Scripting API Wishlist - by CookieRevised on 11-01-2006 at 11:42 PM
RE: Scripting API Wishlist - by NanaFreak on 12-14-2006 at 03:36 AM
RE: RE: Scripting API Wishlist - by deAd on 12-14-2006 at 04:12 AM
RE: Scripting API Wishlist - by NanaFreak on 12-14-2006 at 04:17 AM
RE: Scripting API Wishlist - by markee on 12-14-2006 at 04:24 AM
RE: RE: Scripting API Wishlist - by deAd on 12-14-2006 at 04:36 AM
RE: Scripting API Wishlist - by NanaFreak on 12-14-2006 at 04:40 AM
RE: RE: Scripting API Wishlist - by deAd on 12-14-2006 at 04:41 AM
RE: Scripting API Wishlist - by markee on 12-14-2006 at 05:11 AM
RE: Scripting API Wishlist - by Choli on 01-17-2007 at 08:19 PM
RE: Scripting API Wishlist - by Rolando on 01-17-2007 at 08:29 PM
RE: Scripting API Wishlist - by matty on 01-17-2007 at 08:32 PM
RE: Scripting API Wishlist - by Jesus on 01-22-2007 at 02:49 PM
RE: Scripting API Wishlist - by tryxter on 01-22-2007 at 02:57 PM
RE: Scripting API Wishlist - by Choli on 01-22-2007 at 04:09 PM
RE: RE: Scripting API Wishlist - by CookieRevised on 01-27-2007 at 04:29 PM
RE: Scripting API Wishlist - by vikke on 01-22-2007 at 04:58 PM
RE: Scripting API Wishlist - by Choli on 01-22-2007 at 05:34 PM
RE: Scripting API Wishlist - by Jesus on 01-27-2007 at 06:22 PM
RE: Scripting API Wishlist - by Eljay on 01-27-2007 at 06:31 PM
RE: RE: Scripting API Wishlist - by vikke on 01-27-2007 at 09:54 PM
RE: Scripting API Wishlist - by Jesus on 01-27-2007 at 06:39 PM
RE: Scripting API Wishlist - by Eljay on 01-27-2007 at 06:46 PM
RE: RE: Scripting API Wishlist - by Jesus on 01-27-2007 at 07:06 PM
RE: Scripting API Wishlist - by Eljay on 01-27-2007 at 09:48 PM
RE: Scripting API Wishlist - by Eljay on 01-27-2007 at 10:06 PM
RE: Scripting API Wishlist - by Matti on 04-10-2007 at 05:46 PM
RE: Scripting API Wishlist - by CookieRevised on 04-10-2007 at 06:38 PM
RE: Scripting API Wishlist - by Eljay on 04-10-2007 at 06:55 PM
RE: RE: Scripting API Wishlist - by Matti on 04-11-2007 at 08:21 AM
RE: Scripting API Wishlist - by Ashylay on 04-10-2007 at 07:01 PM
RE: Scripting API Wishlist - by Choli on 04-10-2007 at 07:01 PM
RE: Scripting API Wishlist - by Felu on 04-10-2007 at 11:52 PM
RE: Scripting API Wishlist - by Dempsey on 04-11-2007 at 07:24 AM
RE: Scripting API Wishlist - by markee on 01-16-2008 at 05:22 AM
RE: Scripting API Wishlist - by matty on 01-16-2008 at 05:59 PM
RE: RE: Scripting API Wishlist - by vikke on 01-16-2008 at 07:00 PM
RE: Scripting API Wishlist - by MeEtc on 01-16-2008 at 07:15 PM
RE: Scripting API Wishlist - by Spunky on 01-16-2008 at 08:15 PM
RE: Scripting API Wishlist - by saralk on 01-16-2008 at 09:22 PM
RE: Scripting API Wishlist - by markee on 01-17-2008 at 01:32 PM
RE: Scripting API Wishlist - by markee on 04-05-2008 at 01:15 PM
RE: Scripting API Wishlist - by Matti on 04-05-2008 at 01:29 PM
RE: Scripting API Wishlist - by markee on 11-10-2008 at 02:32 PM
RE: Scripting API Wishlist - by SmokingCookie on 11-12-2008 at 04:52 PM
RE: Scripting API Wishlist - by matty on 11-12-2008 at 06:15 PM
RE: Scripting API Wishlist - by SmokingCookie on 11-12-2008 at 07:26 PM
RE: Scripting API Wishlist - by matty on 11-12-2008 at 07:35 PM
RE: Scripting API Wishlist - by Spunky on 11-24-2008 at 11:02 AM
RE: Scripting API Wishlist - by matty on 11-24-2008 at 04:43 PM
RE: Scripting API Wishlist - by Matti on 11-24-2008 at 05:51 PM
RE: Scripting API Wishlist - by SmokingCookie on 12-06-2009 at 12:08 PM
RE: Scripting API Wishlist - by SourSpud on 12-07-2009 at 09:17 AM
RE: Scripting API Wishlist - by CookieRevised on 12-07-2009 at 02:29 PM
RE: Scripting API Wishlist - by SmokingCookie on 02-12-2010 at 05:58 PM
RE: Scripting API Wishlist - by MeEtc on 02-12-2010 at 08:16 PM
RE: Scripting API Wishlist - by whiz on 03-06-2010 at 12:46 PM
RE: Scripting API Wishlist - by Choli on 03-06-2010 at 01:01 PM
RE: Scripting API Wishlist - by Felu on 03-06-2010 at 01:15 PM
RE: Scripting API Wishlist - by Choli on 03-06-2010 at 02:29 PM
RE: Scripting API Wishlist - by Mnjul on 03-06-2010 at 02:44 PM
RE: Scripting API Wishlist - by Felu on 03-06-2010 at 02:48 PM
RE: Scripting API Wishlist - by Choli on 03-06-2010 at 04:04 PM
RE: Scripting API Wishlist - by CookieRevised on 03-06-2010 at 04:08 PM
RE: Scripting API Wishlist - by whiz on 03-06-2010 at 08:12 PM
RE: Scripting API Wishlist - by Matti on 03-06-2010 at 09:31 PM
RE: Scripting API Wishlist - by matty on 05-13-2010 at 02:55 PM
RE: Scripting API Wishlist - by SmokingCookie on 05-13-2010 at 02:59 PM
RE: Scripting API Wishlist - by matty on 05-13-2010 at 03:03 PM
RE: Scripting API Wishlist - by SmokingCookie on 05-13-2010 at 03:08 PM
RE: Scripting API Wishlist - by NanaFreak on 05-14-2010 at 07:34 AM
RE: Scripting API Wishlist - by Matti on 05-14-2010 at 09:30 AM
RE: Scripting API Wishlist - by SmokingCookie on 05-14-2010 at 09:45 AM
RE: Scripting API Wishlist - by Matti on 05-14-2010 at 10:15 AM
RE: Scripting API Wishlist - by whiz on 06-05-2010 at 11:53 AM
RE: Scripting API Wishlist - by SmokingCookie on 06-05-2010 at 12:52 PM
RE: Scripting API Wishlist - by whiz on 08-31-2010 at 06:04 PM
RE: Scripting API Wishlist - by matty on 08-31-2010 at 06:12 PM
RE: Scripting API Wishlist - by CookieRevised on 08-31-2010 at 10:31 PM


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