Actually the last piece would work only the first time around, after
that even if you didn't have the z down it would still call it as down.
So this may cure that:

on mouseDown
  if the keyPressed = "z" then
    put "Z Down"
  else
    put "Just a click"
  end if
end


Sorry, should have checked it first.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Rachels
Sent: Friday, April 23, 2004 9:06 AM
To: [EMAIL PROTECTED]
Subject: <lingo-l> KeyDown, mouseDown question

I'm having a problem getting a keyDown, mouseDown combination to work.
I
would like something along these lines:

on mouseDown
if (_key.key = "z") is down then
(do this)
else
(do that)
end else
end if
end

Any help is appreciated and next time I light a candle, I'll wave it
three
times counterclockwise while dancing windershins in praise for you.

Steve


[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!]

[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