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? :mad:
the function below is running properlyon my program, but my lecturer need me to do the on mouse over not onclick, :mad: 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. :mad: 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
Re: MY Text to Speech Program need help.
There is no OnClick procedure!
Only Click,DblClick etc..
For example:
VB Code:
Private Sub Command1_Click ()
End Sub
You can make your own procedure by using Events!
VB Code:
Event OnClick()
Private Sub UserControl_Click()
RaiseEvent OnClick
End Sub
The example code above is for a custom activex control event!
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. :mad: Please help thanks! got any simple example!!!
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?
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
Re: MY Text to Speech Program need help.
Anyone know how to solve????
Please help urgent!! :mad:
Re: MY Text to Speech Program need help.
Hello! Anyone help??? :cry:
Re: MY Text to Speech Program need help.
Is it really so hard to solve???? :eek: no one reply me? :rolleyes: No one can help? Or no one understand my problems??
Re: MY Text to Speech Program need help.
Hello! any advanced around here???
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!
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?
Re: MY Text to Speech Program need help.
Quote:
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!
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.
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!...
1 Attachment(s)
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 . :blush: please apologize !
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.
Re: MY Text to Speech Program need help.
Many many many errors while compiling!
WOW...
Why?
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.