Servrox Posted July 12, 2011 Share Posted July 12, 2011 hey, i just started using autoit. i tried to write a script,which automatically logs me in on a website. so it isn't working, i think it always trys to regsiter a new accont. problem is that the form hasn't got a name and is in the drop-down menue. my code atm: #include <ie.au3> $oIE = _IECreate ("http://www.dark-rivals.com/logout.do") If IsObj($oIE) Then _IELoadWait($oIE) $oForm = _IEFormGetObjByName($oIE, "signin") $oUsername = _IEFormElementGetObjByName($oForm, "pseudo") _IEFormElementSetValue($oUsername, "test152") $oPasswd = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($oPasswd, "test152") _IEFormSubmit($oForm) Else MsgBox(48,"fail","fail!") EndIf account/password is working! website: http://www.dark-rivals.com/ maybe u need this, (or chekc by urself): code from the website <fieldset id="login_menu" style="display: block;"> <form id="signin" action="" method="post"> <label for="pseudo">Pseudo : </label> <input id="pseudo" type="text" value="Pseudo" name="pseudo"> <br> <label for="password">Password : </label> <input id="password" type="password" value="Password" name="password"> <br> <input type="hidden" value="1" name="f_login"> <input type="submit" value="Login"> <br> <p class="forgot"> </form> </fieldset> would be so cool if someone can write a working script for me pls help me Link to comment Share on other sites More sharing options...
smartee Posted July 12, 2011 Share Posted July 12, 2011 hey, i just started using autoit. i tried to write a script,which automatically logs me in on a website. so it isn't working, i think it always trys to regsiter a new accont. problem is that the form hasn't got a name and is in the drop-down menue. my code atm: #include <ie.au3> $oIE = _IECreate ("http://www.dark-rivals.com/logout.do") If IsObj($oIE) Then _IELoadWait($oIE) $oForm = _IEFormGetObjByName($oIE, "signin") $oUsername = _IEFormElementGetObjByName($oForm, "pseudo") _IEFormElementSetValue($oUsername, "test152") $oPasswd = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($oPasswd, "test152") _IEFormSubmit($oForm) Else MsgBox(48,"fail","fail!") EndIf account/password is working! website: http://www.dark-rivals.com/ maybe u need this, (or chekc by urself): code from the website <fieldset id="login_menu" style="display: block;"> <form id="signin" action="" method="post"> <label for="pseudo">Pseudo : </label> <input id="pseudo" type="text" value="Pseudo" name="pseudo"> <br> <label for="password">Password : </label> <input id="password" type="password" value="Password" name="password"> <br> <input type="hidden" value="1" name="f_login"> <input type="submit" value="Login"> <br> <p class="forgot"> </form> </fieldset> would be so cool if someone can write a working script for me pls help me Hi Servrox, Welcome to the forums!! Discussing this type of thing is not allowed here Sorry, but its the rules perhaps you can try asking this question elsewhere. I'm looking forward to helping you in the future though Good luck, -smartee Link to comment Share on other sites More sharing options...
Servrox Posted July 12, 2011 Author Share Posted July 12, 2011 ohh ok maybe not the best start here hm anyway thanks! maybe some1 can pm me and help me!? 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