You don't need to resort to an Xtra for this. You can do it in Lingo.
What you're interested in is checking, on a regular basis, the Lingo
property 'the optionDown', as in:
on idle
if the optionDown then
alert "ALT was pressed!"
end if
end
That's all.
FWIW, keys like "shift", "control", and "alt" are actually considered to be
"modifier keys", and not keys in and of themselves. Therefore they will
not normally show up under "keypressed" - you have to specifically check
for a modifier.
- Tab
At 08:29 PM 4/1/01 +1000, Dale Moore wrote:
>I have Buddy API with Director 8 and would like to catch when an ALT key is
>pressed.
>bakeyBeenPressed or baKeyIsDown seem to be suitable Buddy functions to use,
>but I don't know what handler to put the function in.
>
>on keyDown, for example, won't be activated if the ALT key is pressed by
>itself. What handler can I use to check whether the ALT key has been
>pressed?
>
>Thanks in anticipation.
[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!]