As a "Picture is worth a 1000 words" your little test is worth a 1000 of
our emails.
You earned your extra credit!
I checked it and it does work for OTHER app windows but does not work for
the browser top windows.
So We misunderstood each other on exactly which window we are talking about.
So this is what is not working:
When you have your test running in Firefox, Open the menu TOOLS and open
"JAVASCRIPT CONSOLE" or "OPTIONS" window.
Now move that OPTIONS or JAVASCRIT window half over your button.
Now move the mouse in the OPTION windows so that the mouse is over the
button that is below that window.
YOu will see that the alert box pops even though your cursor is over a
(focused) top window of the browser.
This is exactly the problem i wanted to mention.
other than that I did what you mention in "on activate/on deactivate" and
the global boolean prevents the script,controlling all scripts reacting to
mouse move from operating.
Let me know if you get the same result and if there is a solution to it.
thank you Tom
Laurie
-----------------------------------------------------------------------------------
Regarding ScriptExecutionStyle:
From your email:
. The point is this, you will continue to get the
mouse events regardless of scriptExecutionStyle, but using
activateWindow and deactivateWindow handlers that respond to the window
being backgrounded or moved to the foreground, you can set flag
variables as needed. For example:
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]