I am looking for a way to have a process (video cut) to happen when the "a" key is pressed but a different process (video fade) to happen if the "a" key is held down for a period of time (say 50ms.)
I have been looking at the keysdown function and making a repeat loop but I can't get anything to trigger with the keysdown function when the key is pressed.
Any help appreciated.
Code: Select all
on keyDown theKey
if theKey is "a"
then
answer "a"
if "a" is in the keysdown
then
answer "a is down"
else
end if
end if
end keydown