faustf Posted January 16, 2015 Share Posted January 16, 2015 (edited) hi guy i have a questions suppose we have a web page with multiplay button the button have this syntax in page <div class="bottoniFissi text-left"> <a title="Scheda Prodotto" href="/b2b/Schede?idArticolo=AAS201SI&opportunitaCash=False" class="tip btn btn-mini btn-quadrato btn-espriRosso gradient" rel="tooltip"> <img title="Scheda Prodotto" alt="Scheda Prodotto" src="/b2b/Content/images/ico-scheda.png"></a> <div class="bottoniFissi text-left"> <a title="Scheda Prodotto" href="/b2b/Schede?idArticolo=A-10-K&opportunitaCash=False" class="tip btn btn-mini btn-quadrato btn-espriRosso gradient" rel="tooltip"> <img title="Scheda Prodotto" alt="Scheda Prodotto" src="/b2b/Content/images/ico-scheda.png"></a> etc..... i want open the first time a page and click in first button (and this is a simple a just do it ), but i want go back (and just do it ) but want chose the second time a second button , how could do it ?? this is a part of my code _IEImgClick($oIE, "Scheda Prodotto", "alt") Sleep(4000) Local $sText_DCP = _IEBodyReadText($oIE) Local $aArray_Descrizione_completa_prodotti = StringRegExp($sText_DCP, '(?is) Altre opzioni...(.*?) Vendi di opzioni', $STR_REGEXPARRAYGLOBALMATCH ) For $i_DcP = 0 To UBound($aArray_Descrizione_completa_prodotti) - 1 MsgBox($MB_SYSTEMMODAL, "descrizione completa prodotto " & $i_DcP, $aArray_Descrizione_completa_prodotti[$i_DcP]) $file = FileOpen("descrizione_completa.txt", 1) FileWrite($file, $aArray_Descrizione_completa_prodotti[$i_DcP]) FileClose($file) _IEAction($oIE,"back") Next Edited January 16, 2015 by faustf Link to comment Share on other sites More sharing options...
jdelaney Posted January 16, 2015 Share Posted January 16, 2015 (edited) Do you see how horribly formatted this post is? Please take a little pride in your output, and fix it up so someone can assist easily. Edited January 16, 2015 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 16, 2015 Moderators Share Posted January 16, 2015 Global $giCount = 0 While 1 _IEImgClick($oIE, "title", "alt", $giCount) If @error Then ExitLoop Sleep(1000) _IELoadWait($oIE) ; stuff here ; etc ; etc ; etc ; etc $giCount += 1 WEnd faustf 1 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
faustf Posted January 16, 2015 Author Share Posted January 16, 2015 yeaaa is perfect thankzzzz so much 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