Move Cursor along with speech

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rahna
    New Member
    • Aug 2006
    • 12

    Move Cursor along with speech

    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

    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
    Last edited by willakawill; Feb 20 '07, 05:17 PM. Reason: please use code tags when posting code
Working...