Jump to content

Recommended Posts

Posted

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">
Posted

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
Posted

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 :lmao:

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

Posted (edited)

Buzzzz! Thanks for playing :lmao:

Use _IEFormGetCollection and pass in the zero-based index of the form (first form is 0, second is 1 etc).

Dale

oh, sorry. The master behide it would know. Thanks, I learned something new today. Edited by zerocool60544
Check out ConsultingJoe.com
Posted

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.

Posted

@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

Posted

@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

Thanks Dale, actually I have a copy of IE Builder here, much easier.

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
  • Recently Browsing   0 members

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