What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request]Highlight WLM icon

[Request]Highlight WLM icon
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Request]Highlight WLM icon
quote:
Originally posted by -!Felu!-
Errm... how about editing Email Tooltip script by -dt-?
quote:
Originally posted by saralk
I have edited dt's script
no offense to -dt- at all, but why using such a complicated over the top bloated script while all you need todo is calling 1 simple API....

see one of my posts about manipulating the tray icon.

this is all you need:
code:
function ChangeTooltip(newtext) {
    // Some needed variables
    var NIM_MODIFY = 0x1;
    var NIF_TIP = 0x4;
    // Get handle to hidden window which is responsible for the messenger tray icon (polygamy safe!)
    var tIDCurrent = Interop.Call('Kernel32', 'GetCurrentThreadId');
    var hWnd = 0;
    while (hWnd = Interop.Call('User32', 'FindWindowExW', 0, hWnd, 'MSNHiddenWindowClass', 0))
        if (Interop.Call('User32', 'GetWindowThreadProcessId', hWnd, 0) === tIDCurrent) break;
    if (hWnd !== 0) {
        // Create the datablock structure (v2)
        var NOTIFYICONDATA = Interop.Allocate(488);
        // Fill in some needed parameters
        with (NOTIFYICONDATA) {
            WriteDWORD(0, NOTIFYICONDATA.Size);        //DWORD cbSize
            WriteDWORD(4, hWnd);                       //HWND  hWnd
            WriteDWORD(8, 40046);                      //UINT  uID
            WriteDWORD(12, NIF_TIP);                   //UINT  uFlags
            WriteString(24, newtext.substring(0, 127), false);    //WCHAR szTip[128]
        }
        // Call the API
        Interop.Call('shell32.dll', 'Shell_NotifyIconA', NIM_MODIFY, NOTIFYICONDATA);
    }
}

This post was edited on 10-04-2006 at 02:31 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-03-2006 07:04 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request]Highlight WLM icon - by Jimbo on 10-03-2006 at 02:35 PM
RE: [Request]Highlight WLM icon - by Felu on 10-03-2006 at 02:41 PM
RE: RE: [Request]Highlight WLM icon - by CookieRevised on 10-03-2006 at 07:04 PM
RE: RE: RE: [Request]Highlight WLM icon - by alexp2_ad on 10-03-2006 at 07:06 PM
RE: RE: RE: RE: [Request]Highlight WLM icon - by Jimbo on 10-03-2006 at 07:09 PM
RE: RE: RE: RE: RE: [Request]Highlight WLM icon - by alexp2_ad on 10-03-2006 at 07:24 PM
RE: RE: RE: RE: [Request]Highlight WLM icon - by CookieRevised on 10-03-2006 at 07:21 PM
RE: [Request]Highlight WLM icon - by saralk on 10-03-2006 at 04:38 PM
RE: [Request]Highlight WLM icon - by Spunky on 10-03-2006 at 06:21 PM
RE: [Request]Highlight WLM icon - by Jimbo on 10-03-2006 at 06:28 PM
RE: [Request]Highlight WLM icon - by Spunky on 10-03-2006 at 06:29 PM
RE: [Request]Highlight WLM icon - by Jimbo on 10-03-2006 at 06:32 PM
RE: [Request]Highlight WLM icon - by CookieRevised on 10-03-2006 at 07:27 PM
RE: RE: [Request]Highlight WLM icon - by alexp2_ad on 10-03-2006 at 07:28 PM
RE: [Request]Highlight WLM icon - by CookieRevised on 10-03-2006 at 07:29 PM
RE: RE: [Request]Highlight WLM icon - by alexp2_ad on 10-03-2006 at 07:30 PM
RE: [Request]Highlight WLM icon - by Spunky on 10-03-2006 at 09:30 PM
RE: [Request]Highlight WLM icon - by Chris4 on 10-03-2006 at 09:51 PM
RE: RE: [Request]Highlight WLM icon - by CookieRevised on 10-04-2006 at 02:28 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