ie. your first Q.
in a movie script put this:
on prepareMovie
set the exilLock = True
end
Then on a keyDown script you can process the events (key pressed)
by issueing a stopEvent command
Example follows:
on KeyDown
if charToNum (the key) = 27 ---line continues
or (the platform starts "Windows" and the optionDown ----line
continues
and the keyCode = 118) then
stopEvent
if the commandDown then
---prevent Cmd/Ctrl-Q and Cmd/Ctrl-. from quitting
if (the key = "Q" or the key = ".") then
stopEvent
end if
else
pass
end if
else pass
end if
end keyDown
I never tried but I am sure you can trap as many keys as you
want with this procedure.
(Dont' you go thinking I am that clever: the above is a pretty close
rehack of good all Bruce Epstein's Lingo in a Nutshell) :-)
Joe Carafelli wrote:
> Hey all -
>
> I'm making a two-player game (in D8) and some keyboard issues have
> been raised ... First of all, it seems I can only detect three
> keypresses simultaneously - is there any way to increase this?
> Secondly, is there anyway to trap the ESC key? Or the function keys?
> I haven't had much success.
>
> Thanks,
> Joe
[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!]