Hi,
I'm using the DirectSS1 Speech Control in my VB 6 application. I tried to use the WordPosition Event to move the cursor along with the speech.
the code goes like this
It starts moving the cursor from the top of the Richtextbox...
When i tried to make the control read a selected text..it reads the selected text, but the cursor starts moving from the beginning (from the top of the richtextbox)
Can someone please help me to move the cursor along with the speech even when i select the text..
thanks in advance
I'm using the DirectSS1 Speech Control in my VB 6 application. I tried to use the WordPosition Event to move the cursor along with the speech.
the code goes like this
Code:
Private Sub DirectSS1_WordPosition(ByVal hi as long, ByVal lo as long, ByVal ByteOffset as long) RichTextBox1.SelStart=ByteOffset/2 End Sub
It starts moving the cursor from the top of the Richtextbox...
When i tried to make the control read a selected text..it reads the selected text, but the cursor starts moving from the beginning (from the top of the richtextbox)
Can someone please help me to move the cursor along with the speech even when i select the text..
thanks in advance