What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to - Clicking toast to bring up contact list?

How to - Clicking toast to bring up contact list?
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: How to - Clicking toast to bring up contact list?
code:
// First, define a callback function for the toast click.
function OnToastClick(pParam){
    // In this function, we will show the contact list.
    // To do this, we will tell the tray icon listener window that it has been double clicked.
    // First we need a handle to the tray listener window.

    var hListener = Interop.Call('User32', 'FindWindowW', 'MSNHiddenWindowClass', 0);
    if(hListener){ // Check if the window was found.
        Interop.Call('User32', 'SendMessageW', hListener, 0xC350, 0, 0x203); // Tell the listener that it was clicked.
    }
}

// Now, all we need to do is create a toast with this callback function.
function ShowToast(){
    MsgPlus.DisplayToast('Example', 'Click here!', null, 'OnToastClick', null);
}

This post was edited on 06-24-2007 at 10:56 PM by deAd.
06-24-2007 10:55 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to - Clicking toast to bring up contact list? - by stu on 06-24-2007 at 09:51 PM
RE: How to - Clicking toast to bring up contact list? - by deAd on 06-24-2007 at 10:55 PM
RE: How to - Clicking toast to bring up contact list? - by stu on 06-24-2007 at 11:10 PM
RE: How to - Clicking toast to bring up contact list? - by CookieRevised on 06-25-2007 at 02:33 AM
RE: How to - Clicking toast to bring up contact list? - by stu on 06-25-2007 at 02:51 AM


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