switchedon at hsj.com
Tue Jul 30 09:54:01 EDT 2002
I'm still struggling trying to get out of my Director/Lingo habits. I'm
trying to intercept simple keyboard events but I'm having problems. This
project is a simple slideshow that advances card by card using the spacebar.
So far this works fine...
on rawkeydown thekey
if thekey = space then
However, I need to prevent the slideshow from "running away" if the user
holds the spacebar down. In Director this works...
repeat while the keypressed = " "
Transcript doesn't like that. Any suggestions on how to bring things to a
halt until the spacebar is released?
Also, I want the user to be able to go back to the main menu by pressing the
control key at any time during the slideshow. I tried doing this in an idle
handler in the card script as follows...
if the controlkey is down then go to cd "main menu"
This only works inconsistently. I can't explain why. Can anyone help?
Cheers... Bill Lynn, Publisher
More information about the Use-livecode