What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Detecting control mouse-over

[Help] Detecting control mouse-over
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Help] Detecting control mouse-over
quote:
Originally posted by Jana.
How can I get the xy Positions out of the lParam i get back from the Message?
For stuff like that it is always a good idea to look things up in the MSDN Library:

=> WM_MOUSEMOVE
quote:
x is the low word of the double word lParam variable
y is the high word of the double word lParam variable
thus:

    var x = lParam & 0xFFFF
    var y = lParam >>> 16

don't confuse >>> (unsigned right shift operator) with >> (signed right shift operator). See Windows scripting docs for detailed info.

;)


PS: also read "The Old New Thing: Why do I get spurious WM_MOUSEMOVE messages?" if you want to use WM_MOUSEMOVE.


PS: Checking mouse movement over a control with the WM_MOUSEMOVE Windows Message is possible, but does not provide ways to detect if the mouse moved out of the control. For that you need to setup a mouse tracking/capturing message with the Windows API SetCapture.



This post was edited on 07-21-2008 at 12:52 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-21-2008 12:20 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Detecting control mouse-over - by SmokingCookie on 07-09-2008 at 05:19 PM
RE: [Help] Detecting control mouse-over - by matty on 07-09-2008 at 05:32 PM
RE: [Help] Detecting control mouse-over - by SmokingCookie on 07-09-2008 at 05:33 PM
RE: [Help] Detecting control mouse-over - by matty on 07-10-2008 at 01:24 PM
RE: [Help] Detecting control mouse-over - by SmokingCookie on 07-10-2008 at 02:48 PM
RE: [Help] Detecting control mouse-over - by matty on 07-10-2008 at 05:15 PM
RE: [Help] Detecting control mouse-over - by SmokingCookie on 07-10-2008 at 05:20 PM
RE: [Help] Detecting control mouse-over - by Jana. on 07-21-2008 at 09:10 AM
RE: [Help] Detecting control mouse-over - by CookieRevised on 07-21-2008 at 12:20 PM


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