rawKeyDown and key codes

Devin Asay devin_asay at byu.edu
Mon Sep 24 10:17:34 EDT 2007


Paul,

On Sep 23, 2007, at 2:15 PM, Paul Gabel wrote:

> Hello everybody:
>
> In the Docs under rawKeyDown I find this sample script ...
>
>   on rawKeyDown theKeyNumber
>     if theKeyNumber is 65308 then increaseScroll -- mouse wheel down
>     else if theKeyNumber is 65309 then decreaseScroll -- mouse  
> wheel up
>     else pass rawKeyDown -- don't forget this!
>   end rawKeyDown
>
> ... but I can't figure out how to get theKeyNumber in the first  
> place. I know it's just a rawKeyDown parameter here, but how would  
> I, for example, determine "theKeyNumber" for a comma so that I can  
> trap for it? Is there a list some place? Thanks.

This is a little late in the game, but you should check out Sarah  
Reichelt's handy utility, KeyCoder. It's on her web site at <http:// 
troz.net/Rev/misc/KeyCoder.rev.gz>. It was a big help to me on a  
project when I needed to get rawKey codes for various non-ASCII keys.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list