Shoutbox

Skinning & scripting - 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: Skinning & scripting (/showthread.php?tid=97133)

Skinning & scripting by SmokingCookie on 03-19-2011 at 01:54 PM

First of all: this could arguably be placed in the Skinning section too, but I just stick to Scripting on this one :P

I heard rumors that Plus! 5 has or will have dynamic skinning functionalities. Is it possible to provide such stuff to the scripting engine too? Something like:

JScript code:
/* Concept */
 
var Skinning = MsgPlus.Skinning;
var BtnSkinOptions  = Skinning.ContactList.AddButton("BtnSkinOptions","Skin options");
var BtnSkinSite = Skinning.ContactList.AddButton("BtnSkinSite","View this skin's web page");
 
BtnSkinSite.onEvent_Click(Source) {
    ViewWebPage("http://www.example.com/"); // script-defined function
}


RE: Skinning & scripting by SmokingCookie on 03-20-2011 at 09:57 AM

Actually, the toast thing doesn't really answer my question - no offence though. What I meant, was that I'd like to dynamically (i.e. through a script) add stuff to the Messenger windows, without restarting it.


RE: Skinning & scripting by CookieRevised on 03-20-2011 at 10:40 AM

Dynamically skinning means (in yuna's terms) applying skins without restarting.

It is not meant to have the ability to alter stuff on-the-fly with scripting. That's a step further and something else entirely... Nevertheless, it would be a cool addition of course.

But let's first wait on dynamic skinning :p
After that, we can dream of having stacked skinning, combined script/skin packages, and on-the-fly altering of skins with scripts... :D

------

@gabydday, I have requested your posts (and the replies to it) to be split. Your post is off topic and appears to be a request to skin toasts. But as blessedguy already said, that is already possible (since as long as skinning exists actually). Skinning toasts, and Plus! as a whole, works just the same as skinning Messenger. See the docs....


RE: Skinning & scripting by SmokingCookie on 03-20-2011 at 10:54 AM

So, is there a hard way of doing it without the dynamic skinning in Yuna's terms? :P


RE: Skinning & scripting by foaly on 03-20-2011 at 11:18 AM

quote:
Originally posted by SmokingCookie
So, is there a hard way of doing it without the dynamic skinning in Yuna's terms? :P
you can make a window and lay it over the contact list, that is how a local time script did it IIRC...
RE: Skinning & scripting by SmokingCookie on 03-20-2011 at 12:23 PM

That's a good possibility indeed. But adding UI elements like skinning does; is that possible too?


RE: Skinning & scripting by blessedguy on 03-20-2011 at 02:55 PM

quote:
Originally posted by SmokingCookie
But adding UI elements like skinning does; is that possible too?
Can scripts create new CmdIds? If so, I think a skin could add the elements you want and a script could add it's functionality to it. [aka it indeed would be great if scripts could get some skinning functionalities "natively", and it would also be great if skins could have some scripting functionalities]
RE: Skinning & scripting by CookieRevised on 03-20-2011 at 03:01 PM

You are unable to subclass in the way you need to subclass to catch the cmdids. So, even if you do create your own cmdid for a menu or button, it wont do you any good.

You can however, in some cases, manipulate existing buttons via Active Accessebility. But that is rather limited too (again, especially because of the lack of proper subclassing in scripting).


RE: Skinning & scripting by matty on 03-20-2011 at 03:20 PM

quote:
Originally posted by CookieRevised
You are unable to subclass in the way you need to subclass to catch the cmdids. So, even if you do create your own cmdid for a menu or button, it wont do you any good.
One could however inject ASM into the process to subclass ';)