calling handlers with keys
Yennie at aol.com
Yennie at aol.com
Fri Mar 15 10:43:01 EST 2002
I'm not sure this is the simplest way, but it should work if you have to look
for keydowns inside of a long-running loop:
(note: I've never used the "with messages" syntax, but I believe this is how
it works)
on keyDown theKey
global lastKey
put theKey into lastKey
end keyDown
on mainLoop
global lastKey
repeat
presentSomeObjects
wait 1 with messages -- this should let your keyDowns get through once
per loop
switch (lastKey)
-- process the key
end switch
put empty into lastKey
end repeat
end mainLoop
More information about the metacard
mailing list