Orgins Posted April 3, 2007 Share Posted April 3, 2007 (edited) Read other post (Down Below) Edited April 3, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
DaleHohm Posted April 3, 2007 Share Posted April 3, 2007 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 More sharing options...
Maxtreeme Posted April 3, 2007 Share Posted April 3, 2007 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 ) 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 More sharing options...
Orgins Posted April 3, 2007 Author Share Posted April 3, 2007 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 More sharing options...
Valuater Posted April 3, 2007 Share Posted April 3, 2007 <form action="/search" name=f> The last statement from above ^ you can right-click on that page "google.com" and select view source 8) 8) Link to comment Share on other sites More sharing options...
Orgins Posted April 3, 2007 Author Share Posted April 3, 2007 (edited) 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 April 3, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Valuater Posted April 3, 2007 Share Posted April 3, 2007 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) 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