Trapping for the Return Key on keypad of a Windows machine

runrev at animabit.de runrev at animabit.de
Tue Feb 6 02:42:56 EST 2007


I suggest you can use: rawkeydown or rawkeyup

on rawKeyDown theKeyNumber
if theKeyNumber is 65308 then increaseScroll -- mouse wheel down
pass rawKeyDown -- if the key should have further effects. For blocking the key comment this line.
else if theKeyNumber is 65309 then decreaseScroll -- mouse wheel up
else pass rawKeyDown -- don't forget this for all other keys!
end rawKeyDown
every 

--
if you pass rawkeydown the signal of the pushed key is send further in the hierarchy. If you do not pass the key has no further effect and is blocked. Every key on the keypad has its own rawkey

For checking the option keys (shift, alt, control) use 
optionkey, shiftkey etc. (see docu)

The rawkey is the same if the user has made the choice of a different language (english or german or ...) => the "rawkey" of "ä"-key on a german keyboard is the same when used an english keyboard layout but the "keydown" key is dependent on the language and the pressed optionkeys (shift ...).

Test also:
on returnKey -- go to the next card when the user presses return
-- do
end returnKey

Regards, Franz

Mit freundlichen Grüßen
Franz Böhmisch

boehmisch at animabit.de
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537


Original Message        processed by David InfoCenter 
Subject: Trapping for the Return Key on keypad of a Windows machine (03-Feb-2007 19:40)
From:    Charles Szasz <cszasz at mac.com>
To:      use-revolution at lists.runrev.com


Does anyone have a suggestion on how to trap the Return key on the 
keypad of a Windows machine running Windows 2000 and XP? In my 
application, the last text entry when it is completed is supposed to 
enable a button for calculation. It works using the standard Return 
key on the keyboard but is does not work using the Return key on the 
keypad when the number lock is set.


Charles Szasz
cszasz at mac.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

To: use-revolution at lists.runrev.com


More information about the use-livecode mailing list