Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I use
webBrowserGoogleTranslate.Navigate(@"http://translate.google.com/?hl=en&tab=wT#de|en|" + "xxx");

and I found that the button for listening has id : gt-src-listen
so I make a virtual click to hear the word.
webBrowserGoogleTranslate.Document.GetElementById("gt-src-listen").InvokeMember("click");


This worked for a while, but something has gone wrong.
Now the listen button doesn't work even if I press it manually with the real mouse.

So I want a javacode to run and make the function of the listen button, something like
javascript.run('readText()');
Posted
Updated 13-Apr-11 18:39pm
v3
Comments
Manfred Rudolf Bihy 13-Apr-11 16:09pm    
Easy for whom?
john1990_1 13-Apr-11 16:58pm    
its only about looking in the source of the page and finding the function that gets fired when the listen button is pressed
luisnike19 13-Apr-11 16:17pm    
I think it's a google bug, because sometimes I have had that problem in that translator. When I press the button I can hear but not always.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900