deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
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.
|
|