Sign in to follow this  
Followers 0
erbailey

Quick question about a function

4 posts in this topic

I was reading through and decided to download the AutoIt123 by Valuater. First off, this is awesome, Ive learned more in the last 15 minutes than I have trying to write my own scripts. Thank you so much for your support.

I have a question about the _IEFormGetObjByName function...

Here is an example $oForm = _IEFormGetObjByName($oIE, "f")

The only part I am having a difficult time understanding is the "f" portion of this that is in red.

I read the help on this and still don't understand what it is, how you come up with this value etc... can someone explain this to me?

Share this post


Link to post
Share on other sites



From the helpfile-

Returns an object reference to a Form by name.

#include <IE.au3>

_IEFormGetObjByName ( $o_object, $s_name [, $i_index = 0])

Parameters

$o_object Object variable of an InternetExplorer.Application, Window or Frame object

$s_name Name of the Form you wish to match

$i_index Optional: If the Form name occurs more than once, specify which instance you want by 0-based index

so the 'f' is the "Name of the Form you wish to match "

Share this post


Link to post
Share on other sites

In the HTML source for the page you would see <form name="f">

The IEBuilder (also by Valuater) will help you find object names as will several other tools you'll see in my sig.

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

Thank you for your help. I will check out IEBuilder as well :)

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