Klaus Major wrote/ schreef:
> I have similar experiences.
>
> My mouseenter/leave-handler are executed
> even if another application is in front!!
>
> I am working in e.g. Photoshop with my stack in the background and
> i hear my "mouseenter-"sounds all the time when i move the mouse...
>
> Very annoying...
>
> Sorry, i have no recipe to avoid that :-(
What about storing a false or true in appActive at suspendStack and
resumeStack handlers?
on preOpenStack
global appActive
put true into appActive
end preOpenStack
on suspendStack
global appActive
put false into appActive
end suspendStack
on resumeStack
global appActive
put true into appActive
end resumeStack
on mouseEnter
global appActive
if appActive then play "mouseEnter.au"
end mouseEnter
on mouseLeave
global appActive
if appActive then play "mouseLeave.au"
end mouseLeave
Hope this helps,
Sjoerd
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.