Jump to content

Questions about _IE stuff


Recommended Posts

Yikes - others may be willing to respond to your stream of questions, but I say please work through some of the examples in the helpfile first and then come back with more informed questions.

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

yes, like DaleHohm suggested you should do some examples that are under _IE.... tabs, couse it's not easy to work with IE commands (not for me at least :whistle:)

and on forums the "Post new topic" button it's within a form, so if i recall correctly you have to give the forms name where the link it's located

Link to comment
Share on other sites

Ok Maybe I'll just focus on one part.

Ok the Example given for _IEFormSubmit and _IEFormGetObjByName .

#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)

I don't _IEFormGetObjByName.

Where's it get getting "f"?

I know "f" is the "Specifies the name of the Form you wish to match" But where did it get the name f?

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Link to comment
Share on other sites

Ok so _IEFormElementGetObjByName ($oForm, "q")

Does:

<input maxlength=2048 name=q size=55 title="Google Search" value="">

and

_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")

Puts autoit Ie.au3 in the search input bar

and _IEFormSubmit ($oForm) submits it for searching?

So for this:

td>User Name: </td>
<td><input type="text" name="User" value="" size="25"></td>
<tr>
<td>Password: </td>
<td><input type="password" name="Password" value="" size="25"></td>
<tr>
<td></td>
<td colspan=""><input type="submit" name="Login" value="Login"></td>

I would do something like this?

#include <IE.au3>
$oIE = _IECreate ("The URL")
$oFormUser = _IEFormElementGetObjByName ($oIE, "User")
$oFormPass = _IEFormElementGetObjByName($oIE, "Password")
$oFormLogin = _IEFormGetObjByName ($oIE, "Login")
_IEFormElementSetValue ($oFormUser, "MyUsername")
_IEFormElementSetValue ($oFormPass, "MyPass")
_IEFormSubmit ($oFormLogin)
Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Link to comment
Share on other sites

This works... example

; Log into Hotmail

#include <IE.au3>

; Create a browser window and navigate to hotmail
$oIE = _IECreate()
_IENavigate($oIE, "http://www.hotmail.com")

; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "f1")
$o_login = _IEFormElementGetObjByName($o_form, "login")
$o_password = _IEFormElementGetObjByName($o_form, "passwd")

; Set field values and submit the form
_IEFormElementSetValue($o_login, "your username here")
_IEFormElementSetValue($o_password, "your password here")
Sleep(2000)
_IEFormSubmit($o_form)

Exit

8)

NEWHeader1.png

Link to comment
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
 Share

  • Recently Browsing   0 members

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