Abu Rashid Posted October 5, 2006 Posted October 5, 2006 Hi, I'm trying to submit a form with the _IE UDF's, but unfortunately the input element doesn't have a name property, any way to get a handle on the button without the name property? <input type="submit" tabindex="3" value="Click Me">
ConsultingJoe Posted October 5, 2006 Posted October 5, 2006 Hi, I'm trying to submit a form with the _IE UDF's, but unfortunately the input element doesn't have a name property, any way to get a handle on the button without the name property? <input type="submit" tabindex="3" value="Click Me">I would say to try _IEFormElementGetObjByName ( ByRef $o_object, $s_name [, $i_index = 0] ) but set the name to "" and use the index of the input. Check out ConsultingJoe.com
DaleHohm Posted October 5, 2006 Posted October 5, 2006 I would say to try _IEFormElementGetObjByName ( ByRef $o_object, $s_name [, $i_index = 0] ) but set the name to "" and use the index of the input.Buzzzz! Thanks for playing Use _IEFormGetCollection and pass in the zero-based index of the form (first form is 0, second is 1 etc). 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
ConsultingJoe Posted October 5, 2006 Posted October 5, 2006 (edited) Buzzzz! Thanks for playing Use _IEFormGetCollection and pass in the zero-based index of the form (first form is 0, second is 1 etc).Daleoh, sorry. The master behide it would know. Thanks, I learned something new today. Edited October 5, 2006 by zerocool60544 Check out ConsultingJoe.com
Abu Rashid Posted October 5, 2006 Author Posted October 5, 2006 Thanks Dale, worked a treat. zerocool thanks for trying. Just curious is there any easy way to find out the indexes of items in the collections returned? Trial and error is becoming a little boring.
DaleHohm Posted October 5, 2006 Posted October 5, 2006 @zerocool -- please don't hesitate to jump in... I love the fact that there are many others comfortable enough to take a shot at answering these questions @Abu -- grab a copy of IEBuilder (search the forum) as it has some nice functions for examining forms and other elements 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
Abu Rashid Posted October 5, 2006 Author Posted October 5, 2006 @zerocool -- please don't hesitate to jump in... I love the fact that there are many others comfortable enough to take a shot at answering these questions@Abu -- grab a copy of IEBuilder (search the forum) as it has some nice functions for examining forms and other elementsDaleThanks Dale, actually I have a copy of IE Builder here, much easier.
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