Hi Frank,
Once you have set the exitLock to True you have to
manually *trap*(stopEvent) each keyDown event you want to control:
<Revised fromLingo-In-A-Nutshell by Bruce Epstein>
on controleerExit
if charToNum(the key) = 27 or (the platform starts "Windows" and �
the optionDown and the keyCode = 118) then --The escape key code is
--different on PC/Mac
stopEvent
go to movie "exit1"
end if
if the commandDown then
if (the key = "q" or the key = ".") then
stopEvent
go to movie "exit1"
end if
else
pass
end if
end
HTH
John
Frank wrote:
> I work with Director 7.0.2 on PC win98. I try to use the keyDownScript
> in the following script, but this does not seem to work. The projector
> quits when "Control Q" is pressed and also when "Esc" is pressed. What
> can be wrong?
> ----------------
> on startMovie
> global mijnwegA, mijnwegB
> set mijnwegA = FALSE
> set mijnwegB = FALSE
> set the exitLock to TRUE
> set the keyDownScript to "controleerExit"
> end
> ------------------
> on controleerExit
> if the controDown then
> if the key = "q" then
> go to "exit1"
> end if
> else PASS
> end if
> end
[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!]