Keys pressed
Alex Tweedly
alex at tweedly.net
Wed Dec 22 20:43:15 EST 2004
Paul Salyers wrote:
> I need to know how to do a keypressed function:
>
> EX:
>
> press the "I" and it will goto the Information card
>
> Case Asc("I"), Asc("i")
> Open instruction card
> End case
>
> This is an VB example and I have the painful job of converting without
> much help in doc
See docs under keyDown and similar ....
on keyDown theKey
switch theKey
case "I"
go card "Information"
break
....
end switch
end keyDown
But do look at the docs - there are some important exceptions where
certain keys trigger different events.
-- Alex.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.2 - Release Date: 20/12/2004
More information about the use-livecode
mailing list