Shoutbox

[Request]Highlight WLM icon - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request]Highlight WLM icon (/showthread.php?tid=66926)

[Request]Highlight WLM icon by Jimbo on 10-03-2006 at 02:35 PM

is it possible to create a script that displays how many contacts are online/offline when you hover the mouse over the WLM icon in the system tray?
Like this when u hover over the icon(see attachment)


RE: [Request]Highlight WLM icon by Felu on 10-03-2006 at 02:41 PM

Errm... how about editing Email Tooltip script by -dt-?

I can do that for you if you wish


RE: [Request]Highlight WLM icon by saralk on 10-03-2006 at 04:38 PM

I have edited dt's script, so it will now was WLM - your email address - online contacts/offline contacts - Status

e.g. WLM - example@example.com - 24/143 (Online)


RE: [Request]Highlight WLM icon by Spunky on 10-03-2006 at 06:21 PM

I did this before, but never mentioned or released it :p


RE: [Request]Highlight WLM icon by Jimbo on 10-03-2006 at 06:28 PM

Sorry to be picky but  can it do exactly what i asked for, or isn't that possible?


RE: [Request]Highlight WLM icon by Spunky on 10-03-2006 at 06:29 PM

Pretty sure colours aren't possible. Not really a drawback thout is it?


RE: [Request]Highlight WLM icon by Jimbo on 10-03-2006 at 06:32 PM

nah, not really. ok oh well thanks anyway


RE: RE: [Request]Highlight WLM icon by CookieRevised on 10-03-2006 at 07:04 PM

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);
    }
}

RE: RE: RE: [Request]Highlight WLM icon by alexp2_ad on 10-03-2006 at 07:06 PM

quote:
Originally posted by CookieRevised
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.

And that script crashes WLM 8.1 on startup.  :^)
RE: RE: RE: RE: [Request]Highlight WLM icon by Jimbo on 10-03-2006 at 07:09 PM

quote:
Originally posted by alexp2_ad
quote:
Originally posted by CookieRevised
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.

And that script crashes WLM 8.1 on startup.  :^)

But not many people have 8.1 and i swear MPL doesnt work with 8.1 anyway
RE: RE: RE: RE: [Request]Highlight WLM icon by CookieRevised on 10-03-2006 at 07:21 PM

quote:
Originally posted by alexp2_ad
quote:
Originally posted by CookieRevised
see one of my posts about manipulating the tray icon.
And that script crashes WLM 8.1 on startup.  :^)
If you look at the code, there is nothing to crash. That is, WLM uses even the exact same code to do what it does with the icon.

And the main API call to Shell_NotifyIconA is also in -dt-'s script, only he uses a way to complicated way to get to the handle.

Not to mention that in the script I posted in that other thread nothing is even executed on startup at all. The script consists of only a few own made functions, no events at all and no global activex stuff or whatever else.

And even in practice the script does not crash in any WLM version. If you experienced a crash it is because of some other script or alteration of the original code or whatever.
RE: RE: RE: RE: RE: [Request]Highlight WLM icon by alexp2_ad on 10-03-2006 at 07:24 PM

quote:
Originally posted by 134jimbodude
But not many people have 8.1 and i swear MPL doesnt work with 8.1 anyway

The beta version does.  And Cookie, try -dt-'s script on 8.1, I'm 90% certain it will crash on start up.
RE: [Request]Highlight WLM icon by CookieRevised on 10-03-2006 at 07:27 PM

quote:
Originally posted by alexp2_ad
The beta version does.  And Cookie, try -dt-'s script on 8.1, I'm 90% certain it will crash on start up.
I'm talking about my script not about -dt-'s.
RE: RE: [Request]Highlight WLM icon by alexp2_ad on 10-03-2006 at 07:28 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by alexp2_ad
The beta version does.  And Cookie, try -dt-'s script on 8.1, I'm 90% certain it will crash on start up.
I'm talking about my script not about -dt-'s.

Well I was talking about -dt-'s. :P  And you hadn't posted that code when I wrote my post.
RE: [Request]Highlight WLM icon by CookieRevised on 10-03-2006 at 07:29 PM

but me/you/we said:

quote:
Originally posted by alexp2_ad
quote:
Originally posted by CookieRevised
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
see one of my posts about manipulating the tray icon.
And that script crashes WLM 8.1 on startup.  :^)


So that implied you were talking about my post/script about manipulating the tray icon. :p...


aaaaaaaaaaanyways.... back on topic... try the function I posted here:
"CookieRevised's reply to [Request]Highlight WLM icon"
RE: RE: [Request]Highlight WLM icon by alexp2_ad on 10-03-2006 at 07:30 PM

quote:
Originally posted by CookieRevised
but we said:
quote:
Originally posted by alexp2_ad
quote:
Originally posted by CookieRevised
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
see one of my posts about manipulating the tray icon.
And that script crashes WLM 8.1 on startup.  :^)

In fairness, you spent most of that post mocking -dt-'s script, and you said nothing else than "see one of my posts", not even a link, so the bit I was quoting you on, was the bit about -dt-.
RE: [Request]Highlight WLM icon by Spunky on 10-03-2006 at 09:30 PM

quote:
Originally posted by 134jimbodude
But not many people have 8.1 and i swear MPL doesnt work with 8.1 anyway

Just to point out, MP!L will eventually work with WLM 8.1 (next version?) and also, just because not many people have WLM 8.1 and MP!L doesn't work with it yet, doesn't mean that code should not be made compatible with it.

If MS made software that worked with XP (as if that'd ever happen :refuck:), but not work with XP SP1 or SP2, people wouldn't be too happy

PS: Sorry if that sentance seems really long and complicated, but it's English is MY language as I say that sentance is fine! :p
RE: [Request]Highlight WLM icon by Chris4 on 10-03-2006 at 09:51 PM

quote:
Originally posted by alexp2_ad
And that script crashes WLM 8.1 on startup.
Same.

[Image: 1wk9.png]

-------------------

And for some reason I can't get Cookie's script working.
No change when I hover over the icon. It's enabled.
RE: RE: [Request]Highlight WLM icon by CookieRevised on 10-04-2006 at 02:28 AM

quote:
Originally posted by Chris4
And for some reason I can't get Cookie's script working.
No change when I hover over the icon. It's enabled.
The function works nicely here. However be aware that WLM itself changes the tooltip too in many circumstances, so you need to add different events to catch that (eg: your status changes).

PS: the function listed in this thread was mainly to show it could be done in an extremely short way and is only a function based upon the script here. As such, 2 global variables needed for the script aren't included.... So, I think that is why you can't get this to work. I'll inlcude them in the script snipped for more clarity... sorry.