Jump to content

Recommended Posts

Posted (edited)

Hello guys,so i made this code to auto translate from English to Arabic,it translates the word "apple" and displays the translations in a message box, the speed of translation is normal. is there a way to get the same results with higher speed?. and "iexplorer.exe" doesn't close why?

and i get this warning

--> IE.au3 T3.0-1 Warning from function _IECreate,  (Foreground Window Unlock Failed!)

#include <IE.au3>

$oIE = _IECreate("http://dictionary.cambridge.org/dictionary/english-arabic/",0,0)
_IELoadWait($oIE)
$oSb = _IEGetObjByName($oIE, "q")
_IEFormElementSetValue($oSb, "apple")
Local $button = _IEGetObjById ($oIE, "cdo-search-button-submit")
_IEAction($button, "click")
_IELoadWait($oIE)
$oIE=_IECreate(_IEPropertyGet($oIE,"locationurl"),Default,0)
$divs = _IETagNameGetCollection($oIE, "div")
For $div In $divs
    If $div.className == "trans" Then
        MsgBox(0, "Bestimmter Inhalt", $div.innerText)
    EndIf
Next
_IEQuit($oIE)
Edited by mohamad

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...