Jump to content

IE Click second image


 Share

Recommended Posts

How can I do IE to click second image in the page? I tried _IEImgClick but I failed.

For this function needs alt or src or name. But that image doesn't have name,alt and src is changing every time!

Can I just simply somehow click on SECOND image of the page?

Thank you ;)

Link to comment
Share on other sites

Look again, _IEImgGetCollection() takes a 0-based index, so this gets the second image:

$oImg = _IEImgGetCollection($oIE , 1)

Note this function assumes they are in IMG tags. There are ways to show images in other types of tags, which this function would ignore.

;)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Look again, _IEImgGetCollection() takes a 0-based index, so this gets the second image:

$oImg = _IEImgGetCollection($oIE , 1)

Note this function assumes they are in IMG tags. There are ways to show images in other types of tags, which this function would ignore.

;)

Is there is a way to click on flash player image? :)
Link to comment
Share on other sites

Is there is a way to click on flash player image? :)

Only by X/Y coordinates. The flash object is not a Windows API control, and doesn't expose a usable automation interface.

;)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Only by X/Y coordinates. The flash object is not a Windows API control, and doesn't expose a usable automation interface.

;)

It's similar question again. If I got some links that are made by "Javascript". Can I click second link using autoit? :)

Link to comment
Share on other sites

The browser acts on fully rendered HTML, so how they are created does not matter. PSaltyDs' first answer still applies.

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...