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

Toast popup
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Toast popup
quote:
Originally posted by Spunky
you can copy a function to get the text from the toast and check if it says "X has sent you a message". Once you have received that and closed it, add the user into an array.
That wont work... You can have a window in focus which already has a conversation going on.

What you must do (and this is way less complicated; you also don't need any global array at all):
When a toast pops up, check the text of the toast and get the contact's email/name from it. If that email/name is the same as one of the emails/names in the current infocus* chat then hide the toast, if not, let the toast show.

* infocus: meaning all the chat windows (plural!) which are open, thus not minimized when tabbed chatting is disabled. Or the visible chat window (singular) when tabbed chatting is enabled.

PS: Depending on your computer speed it might well be that the toast which needs to be hidden will quite possible still show. This because getting the email/name from it, getting the contacts from the current infocus chats, comparing the two, etc all takes time. And it might well be that by that time the toast is already (partially) displayed.


;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-26-2009 02:17 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Toast popup - by SourSpud on 11-25-2009 at 05:31 AM
RE: Toast popup - by warmth on 11-25-2009 at 05:35 AM
RE: Toast popup - by SourSpud on 11-25-2009 at 05:55 AM
RE: Toast popup - by Spunky on 11-25-2009 at 09:37 AM
RE: Toast popup - by SourSpud on 11-25-2009 at 09:43 AM
RE: Toast popup - by Spunky on 11-25-2009 at 10:27 AM
RE: Toast popup - by SourSpud on 11-25-2009 at 10:40 AM
RE: Toast popup - by Spunky on 11-25-2009 at 10:53 AM
RE: Toast popup - by SourSpud on 11-25-2009 at 10:57 AM
RE: Toast popup - by CookieRevised on 11-25-2009 at 11:41 AM
RE: Toast popup - by SourSpud on 11-25-2009 at 10:25 PM
RE: Toast popup - by Spunky on 11-25-2009 at 11:33 PM
RE: Toast popup - by SourSpud on 11-26-2009 at 01:26 AM
RE: Toast popup - by CookieRevised on 11-26-2009 at 02:17 AM
RE: Toast popup - by SourSpud on 11-26-2009 at 04:03 AM
RE: Toast popup - by CookieRevised on 11-26-2009 at 09:28 AM
RE: Toast popup - by SourSpud on 11-27-2009 at 07:17 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