As well as the excellent flushInputEvents()
you might want to consider checking whether an exe is already running before
launching it as this is the actual thing you want to avoid.
I forget the syntax but there is stuff in Buddy that can do this. Check
under Windows.
--
Richard Tribe, BBC Interactive dept.
> ----------
> From: Iain Sheild
> Reply To: [EMAIL PROTECTED]
> Sent: Tuesday, June 12, 2001 12:33
> To: '[EMAIL PROTECTED]'
> Subject: <lingo-l> How can I flush the event buffer?
>
> I have a menu that launches seperate exe files, I click on a button to
> launch a new exe and there is a delay, on lower spec machiones this delay
> can be 5 to 6 seconds. The delay is long enough for impatient users to
> click
> randomly, other exes are of course inadvertently launched and if not then
> the mouse clicks are buffered, making a real mess of the users experience.
> I
> have tried several things:
>
> 1) Jumping to a different frame (where there is nothing to click on) and
> back again (still the clicks are buffered)
>
> 2) Using Buddy api to prevent the click (causes a crash)
>
> 3) on DisableMouseEvents
> set the mouseUpScript to "stopEvent"
> set the mouseDownScript to "stopEvent"
> end
> on EnableMouseEvents
> set the mouseUpScript to ""
> set the mouseDownScript to ""
> end
> and this just buffers the clicks too
>
>
> What can I do to stop this, is there a way to flush the event buffer - or
> is
> this a taboo?
>
> Iain
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/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!]
>
>
This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]