Re: mouse outside window
- Posted by chrissy <chrissy@OVERTHEHILLSANDFARAWAY.FREESERVE.CO.UK> Jul 11, 2000
- 414 views
> > I need to know when the mouse cursor (in Windows) > > leaves a window. > > To track the mouse, you can: > > 1. Set a timer when you start tracking. > > 2. When the timer goes off, use getMousePos to find the position of the > mouse. > > 3. Use isScreenPointIn to find if the mouse is still in the window > > 4. Use onLostFocus to see if the window loses focus during the drag. > > > Don't forget to kill the timer when you are done tracking the mouse. > > Hope this helps! > > -- David Cuny Didn't need the last point as I wasn't dragging but yeah, that seems to do the job - thanks! It would never have occured to me to use a timer. chris