Results 1 to 18 of 18

Thread: MY Text to Speech Program need help.

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    MY Text to Speech Program need help.

    advanced please help! when i change onclick to on mouseover will display error messages, "Compile eorror: Procedure declaration doest not match the description off events, or procedure having the same name" how to solve it?
    the function below is running properlyon my program, but my lecturer need me to do the on mouse over not onclick, Below this function is incharge the read function, when user browsing web page it can read the links on the webpage, when user click the link. but my lecturer need on mouse over to read. so please help me. thanks! This project deadline is coming soon. or contact me at MSN messenger
    [email protected]

    coding:

    Private Function g_onclick() As Boolean
    On Error Resume Next
    Dim messages As String
    messages = g.parentWindow.event.srcElement.innerText
    If messages <> "" Then
    merlin.Speak messages
    End If
    End Function

  2. #2
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    There is no OnClick procedure!

    Only Click,DblClick etc..
    For example:
    VB Code:
    1. Private Sub Command1_Click ()
    2.  
    3. End Sub

    You can make your own procedure by using Events!
    VB Code:
    1. Event OnClick()
    2.  
    3. Private Sub UserControl_Click()
    4. RaiseEvent OnClick
    5. End Sub

    The example code above is for a custom activex control event!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    But the coding really can run!! Just the Mouse over event through the web browser, i don't know how to write. Please help thanks! got any simple example!!!

  4. #4
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    I didn't understand that you are using MS browser control!

    Well, it hasn't got MouseOver event!I can't help you on adding MouseOver event on MS Browser control!

    Why do you need it? Can't you use GotFocus event?
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    Don't know how to explain!
    go to download the source here!

    I just want to change the onclick function to on mouse over, through the web browser control.

    http://www.geocities.com/siewsiong_012203/My_ie.zip

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    Anyone know how to solve????
    Please help urgent!!

  7. #7

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    Hello! Anyone help???

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    Is it really so hard to solve???? no one reply me? No one can help? Or no one understand my problems??

  9. #9

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    Hello! any advanced around here???

  10. #10
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    1) Stop making posts like "Noone there?" etc.
    2) I downloaded your project but i can't understand what you want to do!
    I found g_OnClick public function which is not used anywhere and i can't understand where to make MouseOver event!
    3) There are many vb errors on your project!

    Please explain more and if you can, then we will help you!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: MY Text to Speech Program need help.

    1. It won't even get past compiling. I think you need to firstly fix your errors before worrying about adding new features.

    2. Stop spamming.

    3. If I understand correctly, you want the speech engine to speak the text of the link that the user is pointing at?

  12. #12
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    3. If I understand correctly, you want the speech engine to speak the text of the link that the user is pointing at?
    If it is this then use API to find the cursors position into Web Browser control!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  13. #13
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: MY Text to Speech Program need help.

    Quote Originally Posted by DarkX_Greece
    use API to find the cursors position into Web Browser control!
    Yeah but then you have to figure out what is under the cursor. There is a DOM event onMouseOver, but I have no idea how to hook it into the VB app.

  14. #14
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    Quote Originally Posted by penagate
    Yeah but then you have to figure out what is under the cursor. There is a DOM event onMouseOver, but I have no idea how to hook it into the VB app.

    Nice idea penagate! I had forgot it!...
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  15. #15

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    Re: MY Text to Speech Program need help.

    sorry so late to reply! Actually i found what i want already, but i don't know how to get the on mouse over function to made it run properly in my browser. so anyone can help me get the on mouse over event to run well in my browser. thanks to advanced first! sorry for yesterday, because i am so nervous to find my answer, that is why i keep repost the nonsense . please apologize !
    Attached Files Attached Files
    Last edited by hotwebs; Mar 13th, 2005 at 11:07 AM.

  16. #16
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: MY Text to Speech Program need help.

    hotwebs, in VB, try Run -> Start With Full Compile (Shift+F5). This will pick up all your errors. ATM when I run the project it breaks on a whole lot of undimensioned variables.

  17. #17
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: MY Text to Speech Program need help.

    Many many many errors while compiling!
    WOW...

    Why?
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  18. #18
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: MY Text to Speech Program need help.

    I am generally pretty strict in my coding... Option Explicit, Option Compare Binary/Text, ByVal, ByRef... but when I sent Wokawidget one of my projects it didn't compile properly the first few times. The reason is, because as you develop the project, VB doesn't compile it every time... just the bits you have changed. But this often means other bits are affected, and VB doesn't pick that up. When it does though is when you do a full compile, i.e. Shift+F5 instead of F5. Then, all of the code is compiled at once and the errors that previously went undetected are picked up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width