universal mouseMove?
The mouseMove message is exactly what I'm looking for as a solution to something I'm working on, but with one drawback for my needs: it is only sent when the mouse moves inside of a MetaCard window; once outside, the message is no longer sent. Any know a native MetaTalk way to trap mouse movement anywhere on the screen, even outside of MC windows, so long as MC is in front? -- Richard Gaskin Fourth World Media Corporation Multimedia Design and Development for Mac, Windows, UNIX, and the Web _ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 ICQ#60248349Fax: 323-225-0716 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: universal mouseMove?
On 2/2/01 2:07 pm, Richard Gaskin [EMAIL PROTECTED] wrote: The mouseMove message is exactly what I'm looking for as a solution to something I'm working on, but with one drawback for my needs: it is only sent when the mouse moves inside of a MetaCard window; once outside, the message is no longer sent. Any know a native MetaTalk way to trap mouse movement anywhere on the screen, even outside of MC windows, so long as MC is in front? The only way I can think of doing it would be to use a send...in handler with a short interval to check the screenMouseLoc. Regards, Kevin Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited (formerly Cross Worlds Computing). Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707. Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: universal mouseMove?
At 6:07 AM -0800 2/2/01, Richard Gaskin wrote: The mouseMove message is exactly what I'm looking for as a solution to something I'm working on, but with one drawback for my needs: it is only sent when the mouse moves inside of a MetaCard window; once outside, the message is no longer sent. Any know a native MetaTalk way to trap mouse movement anywhere on the screen, even outside of MC windows, so long as MC is in front? Using "send" might work. For example, in a card script: local sHaveFocus on mouseMove x,y put x "," y end mouseMove on mouseLeave put true into sHaveFocus send "exMouseMove" to me in 10 milliseconds end mouseLeave on exMouseMove put the mouseLoc into tPoint if (not within(me, tPoint)) and sHaveFocus then put tPoint send "exMouseMove" to me in 10 milliseconds end if end exMouseMove on suspendStack put false into sHaveFocus end suspendStack If this doesn't do what you want, I'm sure some variation of "send" will do the trick. BTW, mouseMove does get sent when the mouse is outside the window if the mouse is down. It gets sent to the object where the mouseDown occurred. Cheers Dave Cragg Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
RE: universal mouseMove?
Do you want the global loc. Also how often do you want it. You could send yourself a message every 1/2 a second like. on wheresMyMouse global tQuit if not tQuit then send wheresMyMouse to me in 1/2 seconds put the mouseScreenLoc end wheresMyMouse the tQuit is so it doesn't run away. Just set that to true when you want to stop the handler. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Gaskin Sent: Saturday, 3 February 2001 12:37 AM To: [EMAIL PROTECTED] Subject: universal mouseMove? The mouseMove message is exactly what I'm looking for as a solution to something I'm working on, but with one drawback for my needs: it is only sent when the mouse moves inside of a MetaCard window; once outside, the message is no longer sent. Any know a native MetaTalk way to trap mouse movement anywhere on the screen, even outside of MC windows, so long as MC is in front? -- Richard Gaskin Fourth World Media Corporation Multimedia Design and Development for Mac, Windows, UNIX, and the Web _ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 ICQ#60248349Fax: 323-225-0716 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list. Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.