emulate a keypress

Cor

Active Member
Licensed User
Longtime User
How to emulate pressing a back key

KeyCodes.KEYCODE_BACK

I want automatically close the virtual keyboard after entering input

grCor
 

bodycode

Member
Licensed User
Longtime User
Oh God am I confused! All I want to do is know WHERE to put "input_type_none". I get an not initialized error even though it exists!

There isn't one single sample of it! I'm freaked. Where I do it in code, I get "not initialzed" or some such message. Why is that? The edttext object already exists (is declared) in the code from the added view in the layout. I do that after the declared edt, and I get that message.

Can someone, PLEASE, send me a fully working sample of this in a custom keyboard layout with numbers 0 through 9 and a decimal point? That's all I wanna do, input a decimal point, NOT using the virtual keyboard. Thanks!

Regards,
Marshall



You can try to change the InputType to NONE (I didn't check it).
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Sorry about being strident... NumberDialog might do it

Well, I eagerly await an answer to my original post, that is, create a numeric-only custom keyboard with 0-9 and all the usual numeric stuff including a decimal point and an All Clear button.

But I'm going to try a Numeric Dialog Box in the meanwhile.

Bear with me, I'm a complete and total noob not only at programming but, using B4a. Sorry about the strident call for help
:sign0104::sign0104:
 
Upvote 0

Hubert Brandel

Active Member
Licensed User
Longtime User
You can use this code to hide it

B4X:
Dim p As Phone
p.HideKeyboard(Activity)

and it should be inside this event code

B4X:
Sub editFeld_EnterPressed
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Thank you.

Thank u so much and appreciate it, will try this 2night first thing

You can use this code to hide it

B4X:
Dim p As Phone
p.HideKeyboard(Activity)

and it should be inside this event code

B4X:
Sub editFeld_EnterPressed
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Awesome

I'll catch on eventually :) Thank you.
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Thank you.

I"m trying for a custom keyboard that only accepts one decimal point. But I also see that there are lots of nice people, like yourself, that are trying to help me. I'll get it eventually, I"ll never give up trying to learn programming and developing a killer app I have in mind. Thanks again.

Marsh

Oh God am I confused! All I want to do is know WHERE to put "input_type_none". I get an not initialized error even though it exists!

There isn't one single sample of it! I'm freaked. Where I do it in code, I get "not initialzed" or some such message. Why is that? The edttext object already exists (is declared) in the code from the added view in the layout. I do that after the declared edt, and I get that message.

Can someone, PLEASE, send me a fully working sample of this in a custom keyboard layout with numbers 0 through 9 and a decimal point? That's all I wanna do, input a decimal point, NOT using the virtual keyboard. Thanks!

Regards,
Marshall
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Thanks all a yiz :)

Thanks again folks. Lots of learning to do. I'll stop moaning and start programming :):)
 
Upvote 0

bodycode

Member
Licensed User
Longtime User
Which sub and where?

Oh, wanted to ask you about this, where do I actually put this sub? Inside the click event of the edit textbox?

Thank u so much and appreciate it, will try this 2night first thing
 
Upvote 0
Top