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:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Toast popup
As long as you remove all MsgPlus.CreateWnd functions that refer to it.

I did just write a quick script at work, it is as yet untested though:

js code:
var WM_CLOSE = 0x10; // Doesn't need to be defined, but it's just there to explain what it is

function OnEvent_Initialize(){ // On Script start
    if(Messenger.MyStatus > 1){ // If we are signed in
        OnEvent_SigninReady(Messenger.MyEmail); // Call the event OnEvent_SigninReady
    }
}

function OnEvent_SigninReady(){ // When we have signed in
    MsgPlus.AddTimer(Messenger.MyUserId, 100); // Start searching using a timer. Using Messenger.MyUserId as the timer's ID. Will be unique to the user, which is useful for checking it was added by the currently logged in user
}

function OnEvent_Timer(ID){ // When the timer fires
    var hWnd = Interop.Call("user32", "FindWindowW", "msblpopupmsgwclass", 0); // Find the toast window
    if(hWnd != null){ // If we found one
        Interop.Call ( 'user32' , 'SendMessageW' , hWnd , WM_CLOSE, 0 , 0 ) ; // Close it
    }
    MsgPlus.AddTimer(ID, 100); // Repeat the timer
}

function OnEvent_Uninitialize(){ // On script stopped
    MsgPlus.CancelTimer(Messenger.MyUserId); // Cancel outstanding timers
}

function OnEvent_Signout(){ // When we have signed out
    OnEvent_Uninitialize(); // Cancel outstanding timers
}
<Eljay> "Problems encountered: shit blew up" :zippy:
11-25-2009 10:53 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