Sign in to follow this  
Followers 0
LapidusCreatorium

Get image button inside a form

3 posts in this topic

#1 ·  Posted (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 by LapidusCreatorium

Share this post


Link to post
Share on other sites



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...

Share this post


Link to post
Share on other sites

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...

thanks :)

I'll give it a try

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0