MattyGibbard Posted April 9, 2009 Share Posted April 9, 2009 Hi everyone. I'm making a talking translator for my dad.So far, everything works fine but I am having one issue. Here is the problem:If you navigate to:http://translate.google.com/translate_t?hl...ame%20is%20mattThat translates 'my name is matt' from English to French. I've got all that automated.The only problem, is reading the output. I've tried to use StringStripWS to remove all spaces then search between two values, which works, but only for translations with no spaces.Is there any way to read just the output text?I did an inspection of the output and it shows this:<div id="result_box" dir="ltr" style="text-align: left;">bonjour</div>Is their any way I can read that in AutoIt?Thank you for your time. Link to comment Share on other sites More sharing options...
Authenticity Posted April 10, 2009 Share Posted April 10, 2009 Dim $oDiv = _IEGetObjById($oIE, 'result_box') MsgBox(64, 'Title', _IEPropertyGet($oDiv, 'innertext')) Link to comment Share on other sites More sharing options...
bogQ Posted April 10, 2009 Share Posted April 10, 2009 Is there any way to read just the output text?_IEBodyReadText ? TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
MattyGibbard Posted April 10, 2009 Author Share Posted April 10, 2009 Dim $oDiv = _IEGetObjById($oIE, 'result_box') MsgBox(64, 'Title', _IEPropertyGet($oDiv, 'innertext')) I could kiss you. Many thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now