Jump to content

Recommended Posts

Posted

hi guys  i have a problem with this  site i try to select a combo box  but nothing   where is  the error??

#include <IE.au3>
#include <MsgBoxConstants.au3>
Local $sCountry_Find = "http://fakenamegenerator.com/"

Global $oIE = _IECreate($sCountry_Find, 0, 1, 1, 1) ; <--- 0011 invisible explorer  <--- 0111 visible explorer
    _IELoadWait($oIE)


    Local $oForm2 = _IEFormGetCollection($oIE, 0)
    $oFirstname = _IEFormElementGetObjByName($oForm2, "n")
    _IEFormElementOptionSelect($oFirstname, "Italiano", 1, "bytext")
    Local $bottone = _IEGetObjById($oForm2, "genbtn")
    _IEAction($bottone, "Click")
    _IELoadWait($oIE)

    Local $sText = _IEBodyReadHTML($oIE)

and how  is possible to control a  functions _IE  if  work  good  ??? or  what object grab?

thankz at all

 

Posted

hi i think i  have  finded  a littel  bug of  _ie ,    with my  system  windows 7 32 bit  last version of  autoit and iexplorer 11   if  i   run a script   with out  closing  _IEQuit($oIE)

example the  script before posted (the script not work ), and  close  with x in browser, after this ie script not work .

  if  i after test with   this  script  and  dont work too,  but  in new machine  with the same configuration if i run  the second script  work good

#include <IE.au3>
#include <MsgBoxConstants.au3>
Local $sCountry_Find = "http://www.fakenamegenerator.com/"

Global $oIE = _IECreate($sCountry_Find, 0, 1, 1, 1) ; <--- 0011 invisible explorer  <--- 0111 visible explorer
    _IELoadWait($oIE)

Local $oElements = _IETagNameAllGetCollection($oIE)
For $oElement In $oElements
    If $oElement.id Then MsgBox($MB_SYSTEMMODAL, "Element Info", "Tagname: " & $oElement.tagname & @CRLF & "id: " & $oElement.id & @CRLF & "innerText: " & $oElement.innerText)
Next

_IEQuit($oIE)

i think after pc restart  return to woork all normally

someone  have finded this problem before???

thankz at all

Posted

not  give me  nothing  error

not select a combo box   only open  explorer with site and not  choice  in ( 3 )  combobox  nothing

 

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
×
×
  • Create New...