LapidusCreatorium Posted December 10, 2008 Posted December 10, 2008 (edited) Hello, It would be great if someone could help me. I have this html code: <input type="image" name="btn0" id="btn0" class="imeage" src="img.aspx?x=jnnxwnw9" /> <input type="image" name="btn1" id="btn1" class="imeage" src="img.aspx?x=45jnnflee" /> <input type="image" name="btn2" id="btn2" class="imeage" src="img.aspx?x=mcen933" /> <input type="image" name="btn3" id="btn3" class="imeage" src="img.aspx?x=45345345g" /> What I need is to download the src images. ( image src changes dynamically) I tried to get the image with _IEImgClick by src with regex but I am stuck, and I am not sure this is the solution. Should I get all the html content of the page and search for patterns? How can I do this? Thanks. Edited December 10, 2008 by LapidusCreatorium
KaFu Posted December 10, 2008 Posted December 10, 2008 Is the number of buttons always the same / know to you? If so try something like this... Loop through for $i = 0 to 30 $oDiv = _IEGetObjById ($oIE, "btn" & $i) $innertext = _IEPropertyGet($oDiv, "innertext") next Within the loop rip the $innertext appart with a RegEx (not a master of this myself) or a combo of stringinstr() stringmid() etc. to obtain the dynamic filenames... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
LapidusCreatorium Posted December 10, 2008 Author Posted December 10, 2008 Is the number of buttons always the same / know to you? If so try something like this...Loop throughfor $i = 0 to 30$oDiv = _IEGetObjById ($oIE, "btn" & $i)$innertext = _IEPropertyGet($oDiv, "innertext")nextWithin the loop rip the $innertext appart with a RegEx (not a master of this myself) or a combo of stringinstr() stringmid() etc. to obtain the dynamic filenames...thanks I'll give it a try
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