alucart13 Posted August 2, 2007 Share Posted August 2, 2007 I need help again. I was wondering if someone could help me with the login part of the script. I have it open the website in ie invisibly. then i need it to put the data from $input_5 into the username block, and the #input_6 data into the password block. then click submit. All of this is done in the background, there is no visible internet explorer window. Please help. if needed, the website is www.gaiaonline.com. Thanks Link to comment Share on other sites More sharing options...
dufran3 Posted August 2, 2007 Share Posted August 2, 2007 (edited) Try This man. #include <IE.au3> $url = "www.gaiaonline.com" $oIE = _IECreate($url, 1) $oFormLogin = _IEFormGetCollection($oIE, 0) $oQueryLogin = _IEFormElementGetObjByName($oFormLogin, 'username') $oQueryPass = _IEFormElementGetObjByName($oFormLogin, 'password') $oSubmitLogin = _IEFormElementGetObjByName($oFormLogin, 'submit') _IEFormElementSetValue($oQueryLogin, 'username') ;<-change 'username' to your username _IEFormElementSetValue($oQueryPass, 'password') ;<-change 'password' to your password _IEFormSubmit($oFormLogin) Edited August 2, 2007 by dufran3 Link to comment Share on other sites More sharing options...
alucart13 Posted August 2, 2007 Author Share Posted August 2, 2007 Try This man. #include <IE.au3> $url = "www.gaiaonline.com" $oIE = _IECreate($url, 1) $oFormLogin = _IEFormGetCollection($oIE, 0) $oQueryLogin = _IEFormElementGetObjByName($oFormLogin, 'username') $oQueryPass = _IEFormElementGetObjByName($oFormLogin, 'password') $oSubmitLogin = _IEFormElementGetObjByName($oFormLogin, 'submit') _IEFormElementSetValue($oQueryLogin, 'username') ;<-change 'username' to your username _IEFormElementSetValue($oQueryPass, 'password') ;<-change 'password' to your password _IEFormSubmit($oFormLogin) Holy crap!! it works perfectly!!! thank you so much!!. many gratitude to you Link to comment Share on other sites More sharing options...
dufran3 Posted August 2, 2007 Share Posted August 2, 2007 na, don't thank me, just passing along what was passed to me... mikehunt114 passed this info to me... Link to comment Share on other sites More sharing options...
alucart13 Posted August 2, 2007 Author Share Posted August 2, 2007 Anyone know how to send it? Link to comment Share on other sites More sharing options...
dufran3 Posted August 2, 2007 Share Posted August 2, 2007 sorry, not sure how to submit that on that particular site. Link to comment Share on other sites More sharing options...
alucart13 Posted August 2, 2007 Author Share Posted August 2, 2007 if you find out, please tell me Link to comment Share on other sites More sharing options...
DaleHohm Posted August 2, 2007 Share Posted August 2, 2007 Anyone know how to send it?I have no clue what your question is...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...
alucart13 Posted August 2, 2007 Author Share Posted August 2, 2007 How do you submit to log in on gaia.. it has a wierd log in form... Link to comment Share on other sites More sharing options...
mikehunt114 Posted August 3, 2007 Share Posted August 3, 2007 Post/attach the site source please. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
alucart13 Posted August 11, 2007 Author Share Posted August 11, 2007 found out, just used _IeGetObjById. it worked like a charm. Of course you have to look at the source code... 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