Shoutbox

include display pictures in toasts? - 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: WLM Plus! General (/forumdisplay.php?fid=23)
+----- Thread: include display pictures in toasts? (/showthread.php?tid=68807)

include display pictures in toasts? by ulyxes on 11-24-2006 at 09:29 PM

Hi! I was wondering if it wouldn't be possible to include display pictures in MPL toast, such as in those of WLM itself... This would be really great!


RE: include display pictures in toasts? by bryceman111 on 11-26-2006 at 05:57 AM

If this was included, it should be a user option I think ;). Good idea though. I never noticed that too much.


RE: include display pictures in toasts? by DarkMe on 11-26-2006 at 05:58 AM

As far as i know this isnt included in MP!L but maybe in future releases or with a script


RE: include display pictures in toasts? by rajvora on 11-26-2006 at 06:44 AM

quote:
Originally posted by ulyxes
Hi! I was wondering if it wouldn't be possible to include display pictures in MPL toast, such as in those of WLM itself... This would be really great!

good idea !!
RE: include display pictures in toasts? by markee on 11-26-2006 at 07:06 AM

quote:
Originally posted by DarkMe
As far as i know this isnt included in MP!L but maybe in future releases or with a script
I highly doubt that a scripter would make such a complex script, it is just easier to use what we have and leave it at that.  This would be great if it was an option (I would change over to just having MP!L doing my toasts) but we can only use what we have, maybe in the future we will have this option.
RE: include display pictures in toasts? by sljaxon on 11-28-2006 at 01:09 AM

Can't be done as a script.


RE: include display pictures in toasts? by markee on 11-28-2006 at 02:53 AM

quote:
Originally posted by sljaxon
Can't be done as a script.
If it was going to be done as a script then you would have to use that script's toasts to display it with their DP.  I'm working on something that might be just what you are looking for (plus a bit more) and will also make this easy for people to add to their script code it they are wanting to have the toasts with a picture.  I wish I could find a way of making a function that other scripts could use, maybe someone could help me there, or else people will just have to add it to their code themselves.
RE: RE: include display pictures in toasts? by deAd on 11-28-2006 at 03:28 AM

quote:
Originally posted by sljaxon
Can't be done as a script.

Actually yes it can. The script would have to keep track of all the notifications that Plus! would toast on, and when those events happen would find the toast window's handle and rearrange some controls. Then it'd need to use the API to add in an image.

All in all it comes down to being possible, but extremely complex for something so trivial.
RE: include display pictures in toasts? by CookieRevised on 11-28-2006 at 01:31 PM

quote:
Originally posted by deAd
Actually yes it can. The script would have to keep track of all the notifications that Plus! would toast on, and when those events happen would find the toast window's handle and rearrange some controls. Then it'd need to use the API to add in an image.

All in all it comes down to being possible, but extremely complex for something so trivial.
No rearranging needs to be done if you simply alter the interface.xml for Plus! toasts to include a picture control.

All the script now needs to do is polling for toasts (which is required for something like this, but is a bad way; so I wouldn't even recommend using such a script at all) and if it is a contact toast and it is used as a contact toast (note: not all scripts use contact toast to diplay contact information!) pull the DP and put it in the picture control of that window which makes up the toast.

But as I said in that other thread about Plus! toast, whatever you do to manipulate the toasts, it _will_ brake the view which certain (if not all) scripts depend on (eg: think about word wrapping).
RE: RE: include display pictures in toasts? by markee on 11-28-2006 at 01:48 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by deAd
Actually yes it can. The script would have to keep track of all the notifications that Plus! would toast on, and when those events happen would find the toast window's handle and rearrange some controls. Then it'd need to use the API to add in an image.

All in all it comes down to being possible, but extremely complex for something so trivial.
No rearranging needs to be done if you simply alter the interface.xml for Plus! toasts to include a picture control.

All the script now needs to do is polling for toasts (which is required for something like this, but is a bad way; so I wouldn't even recommend using such a script at all) and if it is a contact toast and it is used as a contact toast (note: not all scripts use contact toast to diplay contact information!) pull the DP and put it in the picture control of that window which makes up the toast.

But as I said in that other thread about Plus! toast, whatever you do to manipulate the toasts, it _will_ brake the view which certain (if not all) scripts depend on (eg: think about word wrapping).


I realise that by changing the xml and sending extra information to it is an option but for something like this wouldn't it be better to make the feature from scratch through a script (even though Plus! has this feature) as it will not interfere with other scripts like you said.  I was planning on just creating the script from scratch and just import the already made toast alerts from Plus! from the registry and assign "EnableMsgPlusToasts" in the registry to 0 so it disables the Plus! toasts (I might just delete the already loaded toast alerts so that it doesn't conflict with other scripts and not allow their toasts).  I was also thinking of using the same interface as Plus! so it is easy for everyone to use.
RE: include display pictures in toasts? by CookieRevised on 11-28-2006 at 02:49 PM

What you are trying todo is very very hard and in the end will possibly not work 100% properly anyways.

For starters no script and not even Plus! will be able to use those toasts (which is what the request is about). The only thing which will be able to use those toasts is that script itself.

Importing the extra event toast settings from Plus! will still not let this script work properly. There are many cases which you need to take into consideration too. Not to mention it is not that easy to simulate the extra custom Plus! notifications in a proper way. Also you need to take into consideration the cases where Plus! will not show toasts at all (the advanced reg settings, messenger locked, etc, etc) or the cases where it will show a contact toast which is not defined in the custom events, or the cases where Plus! recieves a broadcasted message from a plugin to show a toast, etc...

I'm not saying this is impossible, but I'm saying that if you wanna make something properly, you would end up with a extremely very very complex script and it probably still wouldn't cover all things.

it involves from the top of my head (among many other things):
- properly simulating reading the language resources of Plus!
- properly simulating playing sounds just as Plus! does (thus also taking in account all the (advanced) registry settings involving sound devices).
- taking in account all the custom event notification settings, inlcuding what todo with what contact and/or new contacts which aren't added yet.
- catching registry changes for Plus! settings like "dont show toasts when busy", "don't play sounds when media is set", "show toats for contacts that are blocked", etc, etc....
- catching custom event notification changes
- catching advanced registry changes for Plus! settings
- catching messenger locks/unlocks
- etc etc etc

Again, it isn't impossible (although it would involve some dodgy ways of coding for certain things, eg: polling), but it is way far more complex than it appears at first sight.

It might be nice to make something like this in that way as a coding practice and/or as a "proof of concept", but it will not work 100% like it should.