Status of keys on keyboard
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Status of keys on keyboard
Greetings,
There's some great functions and messages for working with the keyboard and obtaining when keys are pressed, but I'm in need of something a little more. Determining the if the capslock key is up or down is there, but can't find anything that will help me with scrolllock, numlock and insert keys.
Does anyone know if there's a way in Rev to determine the status of these keys?
The rawkeydown returns the numerical id's for these, but still no way to determine if these keys are active or not like the capslock function.
Thanks in advance,
-Garrett
There's some great functions and messages for working with the keyboard and obtaining when keys are pressed, but I'm in need of something a little more. Determining the if the capslock key is up or down is there, but can't find anything that will help me with scrolllock, numlock and insert keys.
Does anyone know if there's a way in Rev to determine the status of these keys?
The rawkeydown returns the numerical id's for these, but still no way to determine if these keys are active or not like the capslock function.
Thanks in advance,
-Garrett
Hi Garret,
check the docs for "rawkeydown/-up".
To get the the correct "rawkey" number of these keys, create a new stack with one field and put this into the cardscript:
This way cou can press any key, see its "rawkey" number and use this for your scripting.
Hope that helps.
Best from germany
Klaus
check the docs for "rawkeydown/-up".
To get the the correct "rawkey" number of these keys, create a new stack with one field and put this into the cardscript:
Code: Select all
on rawkeydown tKey
put tKey & CR after fld 1
## or "...into fld 1"
end rawkeydown
Hope that helps.
Best from germany
Klaus
Yeah well if there really is no way of knowing the status of those toggle-style keys, file it as a bug.
I guess only the capslock is supported because all of the other ones have long gone on the macintosh keyboards or never existed. Thus, trying to implement them in your program will render it un-multiplatform. If you avoid using them altogether, it's better. You can surly find a better GUI way of achieving what you want.
Cheers.
I guess only the capslock is supported because all of the other ones have long gone on the macintosh keyboards or never existed. Thus, trying to implement them in your program will render it un-multiplatform. If you avoid using them altogether, it's better. You can surly find a better GUI way of achieving what you want.
Cheers.