At 4:34 PM -0400 8/15/05, Cole Tierney wrote:
A clearer demo is to try:

on keyDown
  beep
end

Then try holding down the command key while pressing other keys. Release the command key while still pressing other keys and you should hear the beep.

Hmm. I should have tried that before posting (thanks, Buzz!). The code in my current project is looking specifically for <command> - q, and not other combinations. I mistakenly assumed other keys were affected. Sorry for the untested example.

Here're the revised (and tested!) steps. Run the following in a 10.1r11 mac projector:

-- In a movie script:
on prepareMovie
  the exitLock = TRUE
end

-- In a frame script:
on keyDown me
  if the commandDown then
    beep -- Should not hear this for <command> - q
  end if
end

on exitFrame me
  go the frame
end

on mouseDown me
  halt -- So you don't need to force quit. ;)
end

--
Cole

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to