Hello B4A experts. I am messing around with the great VR example from Erel and have the spoken text being written to a edittext. No problem. What I need help with is this:
1. Whenever VR finishes the text is written to etext, however the cursor goes back to the start.
2. Viewing unfiltered logs, etext_TextChanged does not appear to fire. etext_TextChanged does fire during typing into etext via the keyboard.
I am looking to capture old text new text when using VR and a way to move the cursor to the end of the spoken text, or the end of eText.text. I did try the example of GetSelectionEnd and using reflection but w/o success.
Many Thanks
Scott
1. Whenever VR finishes the text is written to etext, however the cursor goes back to the start.
2. Viewing unfiltered logs, etext_TextChanged does not appear to fire. etext_TextChanged does fire during typing into etext via the keyboard.
I am looking to capture old text new text when using VR and a way to move the cursor to the end of the spoken text, or the end of eText.text. I did try the example of GetSelectionEnd and using reflection but w/o success.
B4X:
If Success = True Then
spokenText=Texts.Get(0)' Get the verbal text
etext.Text=etext.Text & " " & spokenText
cursorpos = GetSelectionEnd(etext)
etext.SelectionStart =cursorpos
End If
Many Thanks
Scott
Last edited: