Sign in to follow this  
Followers 0
j00ls

_IETableGetCollection and images / img links

4 posts in this topic

#1 ·  Posted (edited)

Hello AutoFriends!

I have a little problem, i have been very successfully using _IETableGetCollection in my scripts (love it) :P so I would like to keep using it.

however: It does not return any information about images in the table and the links on those images.

What I need: the image source (<img scr="THIS">) and the links on the images (<a href="THIS><img aso.)

is there any way to use IE.au3 for this or do I have to start from scratch?

Thank you very much!

Edited by j00ls

Share this post


Link to post
Share on other sites



If they're in a frame you have to get it from inside the frame,there was a discussion about this not long ago. If they aren't why not use _IETagNameGetCollection() and use IMG or A as the tag?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

as I understood _IETagNameGetCollection gets me all the Tags on the website... but I need to affiliate the images with the rows of the table they are in.

Ill try an example (its supposed to be a table)

Name | value | img img | text | link&img

I need to read all those infos into one row of the array i want to create... as I understand it if I go with IETagNameGetCollection i just have the (hundreds) of images on the site without knowing where they belong.

I will probably have to parse the site from scratch and go with the StringRegExp command - however the syntax is something of its own. Anybody know a little easy to understand and get-into howto?

thanks!

Edited by j00ls

Share this post


Link to post
Share on other sites

_IETagnameGetCollection can be scoped down... for example, if you get a reference to a table, say $oTable, you then then get all images in the table wirh _IETagnameGetCollection($oTable, "img"). Similarly you can dig deeper... for example, if you know that the image you want is in the 10th row and the 3rd column of the table you can:

$oTR = _IETagnameGetCollection($oTable, ""TR", 9)

$oTD = _IETagnameGetCollection($oTR, ""TD", 2)

$oImg = _IETagnameGetCollection($oTD, ""img", 0)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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