Sign in to follow this  
Followers 0
alucart13

How to sign in on a website with autoit.

11 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by dufran3

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

na, don't thank me, just passing along what was passed to me... mikehunt114 passed this info to me... :)

Share this post


Link to post
Share on other sites

Anyone know how to send it?

Share this post


Link to post
Share on other sites

sorry, not sure how to submit that on that particular site.

Share this post


Link to post
Share on other sites

if you find out, please tell me

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

How do you submit to log in on gaia.. it has a wierd log in form...

Share this post


Link to post
Share on other sites

found out, just used _IeGetObjById. it worked like a charm. Of course you have to look at the source code...

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