Page 1 of 1
Get the of characters of Keybaod botton
Posted: Thu Oct 22, 2015 7:24 am
by shalu
Hi all,
I am beginner in LiveCode, I have button and I trying to get the of characters of backspace or enter key to a button is it possible ?
Thanks
Shalu
Re: Get the of characters of Keybaod botton
Posted: Thu Oct 22, 2015 11:39 am
by richmond62
Start by downloading a little stack I have made.

- KeyZ.png (4.37 KiB) Viewed 3941 times
It contains this code in the cardScript:
on keyDown KD
put KD into fld "KD"
end keyDown
on rawKeyUp KU
put KU into fld "RD"
end rawKeyUp
So, when you press a key and then let it go you will get the keyCode in the top window
and the rawKeyCode in the bottom window.
Now, once you have used that stack to determine the rawKeyCode for backSpace you can assign that code to any key on your keyboard you want:
on keyDown KD
if KD = "q" then
put numToCodePoint(65288)
end if
end keyDown
Re: Get the of characters of Keybaod botton
Posted: Thu Oct 22, 2015 12:32 pm
by Klaus
Re: Get the of characters of Keybaod botton
Posted: Thu Oct 22, 2015 3:12 pm
by bn
Hi Klaus,
in another thread someone ask if samjith and shall is the same person. The reply was that they are collaborators. Apparently they ask similar questions in a very similar style.
Maybe they should talk to each other a little more. And get to the basics of Livecode a little more. There is the language guide, there are the lessons
http://lessons.runrev.com
I am missing your link to the "conferences"...
Kind regards
Bernd
Re: Get the of characters of Keybaod botton
Posted: Thu Oct 22, 2015 4:55 pm
by Klaus
Hi Bernd,
bn wrote:Maybe they should talk to each other a little more.
that's exactly what I meant
bn wrote:I am missing your link to the "conferences"...
I already pointed both of them to the URL!
Best
Klaus
Re: Get the of characters of Keybaod botton
Posted: Fri Nov 06, 2015 4:56 am
by shalu
Hi all,
Samjith is a different person. I and Samjith have the same project. Samjith already asked the question for which he didn't get an exact output.
That's why I asked the same question.
Thanks
Shalu