What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Mouse events

Mouse events
Author: Message:
BananushkA
New Member
*


Posts: 9
– / Male / –
Joined: Jun 2006
O.P. Mouse events
Is there anyway to handle mouse events (such as mouse down, mouse up, mouse move etc.) in Messenger Plus! Live windows?
Or, is there a way to select an area (blank area) in a window (like explorer, basically)?
06-26-2006 12:39 PM
Profile E-Mail PM Find Quote Report
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
33 / Male / –
Joined: Feb 2005
RE: Mouse events
Get the handle to the window and subclass it.
[Image: 468x60banner.png]
06-26-2006 12:41 PM
Profile E-Mail PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
RE: Mouse events
quote:
Originally posted by TheGeek
Get the handle to the window and subclass it.
Don't think you can subclass it, because you can't receive messages from subclassing on scripts...
But if you can, I would like to know how :)
YouTube closed-captions ripper (also allows you to download videos!)
06-26-2006 01:21 PM
Profile E-Mail PM Web Find Quote Report
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
33 / Male / –
Joined: Feb 2005
RE: RE: Mouse events
quote:
Originally posted by Mike
quote:
Originally posted by TheGeek
Get the handle to the window and subclass it.
Don't think you can subclass it, because you can't receive messages from subclassing on scripts...
But if you can, I would like to know how :)

You make a DLL with a wndproc for the window, then you subclass the window.
The new wndproc saves the last position of the mouse in it's own memory, then a script calls another function in the DLL which then reads the x or the y variable and returns it to the script.
[Image: 468x60banner.png]
06-26-2006 01:37 PM
Profile E-Mail PM Web Find Quote Report
BananushkA
New Member
*


Posts: 9
– / Male / –
Joined: Jun 2006
O.P. RE: RE: RE: Mouse events
quote:
Originally posted by TheGeek
quote:
Originally posted by Mike
quote:
Originally posted by TheGeek
Get the handle to the window and subclass it.
Don't think you can subclass it, because you can't receive messages from subclassing on scripts...
But if you can, I would like to know how :)

You make a DLL with a wndproc for the window, then you subclass the window.
The new wndproc saves the last position of the mouse in it's own memory, then a script calls another function in the DLL which then reads the x or the y variable and returns it to the script.


Can you write me a more specific example, please?
06-26-2006 05:47 PM
Profile E-Mail PM Find Quote Report
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
33 / Male / –
Joined: Feb 2005
RE: Mouse events
Well, if you know winapi, it should be easy to do, but apperantly you don't...
1) a C tutorial: http://cplus.about.com/od/beginnerctutoria1/l/blctut.htm
2) a WinApi tutorial: http://winprog.net/tutorial/
3) subclassing: http://www.rpsoftware.net/old/tutorials.php?page=subclass

Follow those tutorials and you should be fine.
[Image: 468x60banner.png]
06-27-2006 09:43 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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