LarryDalooza Posted September 22, 2008 Share Posted September 22, 2008 <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. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 22, 2008 Share Posted September 22, 2008 There should be something like _IEImageClick(). Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
LarryDalooza Posted September 22, 2008 Author Share Posted September 22, 2008 but it is not a <img> ... it is an <input> Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 22, 2008 Share Posted September 22, 2008 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. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
pugboy Posted September 22, 2008 Share Posted September 22, 2008 Use _IEGetFormElementCollection() to get the handle, then _IEAction("click",$handle) to click it. Link to comment Share on other sites More sharing options...
LarryDalooza Posted September 22, 2008 Author Share Posted September 22, 2008 OK, that'll do, thanks. Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
DaleHohm Posted September 22, 2008 Share Posted September 22, 2008 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 Link to comment Share on other sites More sharing options...
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