What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] WM_MOUSEMOVE doesn't work

[?] WM_MOUSEMOVE doesn't work
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] WM_MOUSEMOVE doesn't work
Good news... bad news...

Good news is I managed to get it to work with the Plus! Window. Unfortunately I can't see how it will work with controls.

Javascript code:
var WM_MOUSEMOVE = 0x200;
var WM_MOUSEHOVER = 0x02A1;
var TME_HOVER = 1;
var wndSubclass;
 
function OnEvent_Initialize() {
    if (Messenger.MyStatus < STATUS_INVISIBLE) return false;
    Debug.DebuggingWindowVisible = true;
    wndSubclass = MsgPlus.CreateWnd('wndSubclass.xml', 'wndSubclass');
    wndSubclass.RegisterMessageNotification(WM_MOUSEMOVE);
    wndSubclass.RegisterMessageNotification(WM_MOUSEHOVER);
}
 
function OnEvent_SigninReady() {
    OnEvent_Initialize();
}
 
function OnwndSubclassEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
    switch (nMessage) {
        case WM_MOUSEMOVE:
            Debug.ClearDebuggingWindow();
            Debug.Trace('WM_MOUSEMOVE');
            var TRACKMOUSEEVENT = Interop.Allocate(16);
            with(TRACKMOUSEEVENT) {
                WriteDWORD(0, Size);
                WriteDWORD(4, TME_HOVER);
                WriteDWORD(8, pPlusWnd.Handle);
                WriteDWORD(12, 1);
            }
            Interop.Call('user32','TrackMouseEvent',TRACKMOUSEEVENT.DataPtr);
            return -1; // Process the message little one
        case WM_MOUSEHOVER:
            Debug.ClearDebuggingWindow();
            Debug.Trace('WM_MOUSEHOVER');
            return -1;
    }
}


[Image: attachment.php?pid=992973]

.jpg File Attachment: WM_HOVER.jpg (19.1 KB)
This file has been downloaded 729 time(s).

This post was edited on 04-22-2010 at 12:28 AM by matty.
04-22-2010 12:27 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-18-2010 at 07:24 AM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-18-2010 at 03:01 PM
RE: RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-18-2010 at 05:50 PM
RE: [?] WM_MOUSEMOVE doesn't work - by CookieRevised on 04-19-2010 at 01:08 AM
RE: RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-19-2010 at 07:12 PM
RE: [?] WM_MOUSEMOVE doesn't work - by CookieRevised on 04-20-2010 at 02:05 AM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 02:10 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 02:52 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 04:08 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 04:25 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 04:32 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 04:41 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 04:43 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 04:46 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 04:50 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 05:19 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 05:23 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 05:24 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-20-2010 at 05:25 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 05:28 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-20-2010 at 09:26 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-21-2010 at 02:58 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-21-2010 at 04:35 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-21-2010 at 05:40 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-21-2010 at 07:38 PM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-22-2010 at 12:27 AM
RE: [?] WM_MOUSEMOVE doesn't work - by CookieRevised on 04-22-2010 at 04:14 AM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-22-2010 at 01:02 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-23-2010 at 11:40 AM
RE: [?] WM_MOUSEMOVE doesn't work - by matty on 04-23-2010 at 11:42 AM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 04-24-2010 at 09:16 AM
RE: [?] WM_MOUSEMOVE doesn't work - by CookieRevised on 04-24-2010 at 01:31 PM
RE: [?] WM_MOUSEMOVE doesn't work - by SmokingCookie on 05-01-2010 at 10:40 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