how can I stop a mouseenter-command
Alex Tweedly
alex at tweedly.net
Fri Nov 13 10:10:24 EST 2009
As well as what Jan said about making tMouseout a global (or, better, a
script local) variable, you probably also need to change
wait 1 second
to
wait 1 second with messages
otherwise the mouseleave message won't be processed while you wait, and
therefore the variable won't be changed.
-- Alex.
Reinhold Venzl-Schubert wrote:
> Hi!
>
> I have a lazy finger and don't want to click the mouse.
> When the mouse enters a button on my card its script shall wait 1 second.
> When meanwhile the mouse has leaved, the script shall stop.
> Only when the mouse stays over the button the script shall work on.
>
> Therefore my button has a script like this:
>
> on mouseenter
> put "inside" into tMouseOut
> wait 1 second
> if tMouseOut is not "inside" then
> exit mouseenter
> else
> ## do anything important
> end if
> end mouseenter
>
> on mouseleave
> put empty into tMouseOut
> end mouseleave
>
> But my script works as well as the mouse stay over the button or leave it.
> What is my mistake.
>
> Thanks
> Reinhold
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the use-livecode
mailing list