Search the Community
Showing results for tags 'Google Traslate'.
Found 1 result
Hi guys, I'm searching into the forum and find some old example, but no one working fo me, so i'll decide to make a new thread. I want using it to automatic traslate a GUI The problem is the response of the page, i have try to: 1) Save the output like ini/txt 2) Save the output like mht I can't find the traslated text For now i have make: $test = @WorkingDir & "\test.mht" $word = "Bonjour" _INetGetMHT( ["http://translate.google.com/#auto|en|"] & $word, $test ) Func _INetGetMHT( $url, $file ) Local $msg = ObjCreate("CDO.Message") If @error Then Return False Local $ado = ObjCreate("ADODB.Stream") If @error Then Return False With $ado .Type = 2 .Charset = "US-ASCII" .Open EndWith $msg.CreateMHTMLBody($url, 0) $msg.DataSource.SaveToObject($ado, "_Stream") FileDelete($file) $ado.SaveToFile($file, 1) $msg = "" $ado = "" Return True EndFunc How to read the box with tralsated text? Thanks for support EDIT: Sorry for the [ ] in _INetGetMHT, i can't remove it, or the forum process it like URL