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.