Skip to first unread message

WebAtelier- mt

unread,
Feb 28, 2016, 5:10:30 AM2/28/16
to MIT App Inventor Forum

How can I get the cursor position in a textbox?

I need to get the cursor position because I'll send it to the textToSpeach component to hear text from this position.

Scott Ferguson

unread,
Feb 28, 2016, 6:27:31 AM2/28/16
to mitappinv...@googlegroups.com
There is no property for cursor position.
You can insert an '|' pipe character in the text set initially at position 1 in the text then give the user some buttons to move it in the textbox.
To send to the TTS component, split the text at the pipe then send the select list item(textbox.text,2) part.
If the user does not move the pipe all of the text will be spoken.
---
Reply all
Reply to author
Forward
0 new messages