Skip to first unread message

MMZ39

unread,
Sep 7, 2016, 10:06:36 AM9/7/16
to MIT App Inventor Forum
Hi,
      I'm looking to develop a simple app such that:
When some text is typed in the textbox , for every keypress Text2Speech engine should kick in and sound the key. When space is pressed it should sound the last word.

For eg if I type "Hello World " I should hear H E L L O Hello W O R L D World .

In the text box events I could not find any event for keypress.

Can this be done. ?

Thanks,
MMZ




Taifun

unread,
Sep 7, 2016, 10:33:40 AM9/7/16
to MIT App Inventor Forum
there is no such event, but you could use a clock component to check the text of the textbox and if there is a new letter, then do something


Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Italo

unread,
Sep 7, 2016, 11:02:41 AM9/7/16
to MIT App Inventor Forum
Another option, although it involves more work is creating your own custom keyboard, using buttons for each allowed character in your app, that way you have full control of each button click, long click, etc.

MMZ39

unread,
Sep 8, 2016, 6:06:06 AM9/8/16
to MIT App Inventor Forum
Yes this should work.  Is there a way to make this custom keyboard pop up when Text box is in focus.

Mika

unread,
Sep 8, 2016, 3:29:08 PM9/8/16
to MIT App Inventor Forum
I think no. But you can make your personal keyboard visible if the textbox is visible.

If textbox = visible
Than set "your keyboard" to visible = true

Taifun

unread,
Sep 8, 2016, 3:47:24 PM9/8/16
to MIT App Inventor Forum
see also Scott's example here https://groups.google.com/d/msg/app-inventor-developers-library/FSynR9EiTj8/OMMcpM1InWwJ
btw. if you use a custom keyboard, you can use a label instead of a textbox...
Taifun

Italo

unread,
Sep 8, 2016, 5:17:22 PM9/8/16
to MIT App Inventor Forum
Yes, Taifun is right. In fact, I think you SHOULD use a label or a button, disguised as a textbox, to detect when it's touched to be able to edit it.
Reply all
Reply to author
Forward
0 new messages