Sign in to follow this  
Followers 0
LarryDalooza

IE.AU3 and Identify an Input

7 posts in this topic

<input type="image" src="images/btn_splash.gif" alt="Get in the game" width="119" height="28" border="0" />

How can I click this thing with IE.AU3?

Thanks

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites



but it is not a <img> ... it is an <input>

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

You could try _IEGetTagCollection(). I'm not sure of the exact name as I don't have autoit on this computer. Sorry about the earlier mistake, I misread. Just get the collection of <input> tags and find the proper index and boom. :)

Share this post


Link to post
Share on other sites

Use _IEGetFormElementCollection() to get the handle, then _IEAction("click",$handle) to click it.

Share this post


Link to post
Share on other sites

OK, that'll do, thanks.

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Hey Larry... that tag is an odd bird. Here is the function you need:

_IEFormImageClick

--------------------------------------------------------------------------------

Simulate a mouse click on an <input type=image>. Match by sub-string match of alt text, name or src.

Remarks

The <input type=image> form element is handled differently from all others. It is not recognized by Internet Explorer as a member of the form element collection and this function therefore gives you other means of getting a reference to it within the document using src, name or alt strings. Regardless of the object passed to this function, it looks for the form element within the full document context.

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