Another approach, assuming your script is looping through a list of things
that all have to be processed: Convert the handler containing the repeat
loop into a handler that executes once for each thing in the list. It would
end with a statement that queues an execution of that same handler, like:
send <handlerName> to me in 20 milliseconds
This way, if the user presses a key while <handlerName> is running, the key
messages will be queued for handling at the next opportunity. That opp would
occur when the current run through <handlerName> is completed - and *before*
the next one begins.
Phil Davis
----- Original Message -----
From: "Pierre Sahores" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 12:59 PM
Subject: Re: Intercepting keydown events
Jacqueline Landman Gay a �crit :
>
> Is there a way to determine if the user has pressed a key on the
> keyboard while a handler is running? I know I can test for commandKey,
> shiftKey, etc. but what I need to test for is the "+" and "-" keys. I
> suspect the answer is "no" but it never hurts to ask.
on mouseup
repeat for each line in var1
keydown -- test the keys state
--...do what you need
end repeat
end mouseup
on keydown w
if w is "+" then
--...do what you need
else if w is "-"
--...do what you need
end if
end keydown
> --
> Jacqueline Landman Gay | [EMAIL PROTECTED]
> HyperActive Software | 612-724-1596
> Custom hypermedia solutions | http://www.hyperactivesw.com
Kind Regards, Pierre Sahores
WEB & VPN applications & databases servers
Inspection acad�mique de Seine-Saint-Denis
Qualifier & produire l'avantage comp�titif
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.
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.