rawKeyDown and key codes
André.Bisseret
Andre.Bisseret at inria.fr
Mon Sep 24 04:20:08 EDT 2007
Hi Paul,
Here (Mac 10.4.10 ; Rev 2.8.1) the script from Ken is working well :
for example, when typing the comma I get 44 (in the message box)
Best regards from Grenoble
André
Le 23 sept. 07 à 23:52, Paul Gabel a écrit :
> Hi Ken:
>
> Thanks for your suggestion, but unfortunately it doesn't work. When
> I type anything in the field, nothing shows up. Any other thoughts?
>
> Paul Gabel
> ---------------
> On Sep 23, 2007, at 2:08 PM, Ken Ray wrote:
>
>> On Sun, 23 Sep 2007 13:15:21 -0700, 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.
>>
>> You can always create a dummy field with the script:
>>
>> on rawKeyDown pKey
>> put pKey
>> end rawKeyDown
>>
>> Then type the comma in the field and you'll get your result.
>>
>>
>> Ken Ray
>> Sons of Thunder Software, Inc.
>> Email: kray at sonsothunder.com
>> Web Site: http://www.sonsothunder.com/
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list