Chris86 Posted March 13, 2008 Share Posted March 13, 2008 (edited) Hi, Recently i have been playing a Tribalwars, that is a Norwegian version of Travian. Now i want to have a script that login to tribalwars.no and upgrade the houses. I just want a script that allows me to login and choose what url it shall go to after that. Like: at 16:00 the browser would go to "http://no1.tribalwars.no/game.php?village=18616&screen=main&action=build&id=barracks&h=3ae7" then wait some seconds and wait for the next task. Login Code: #include <IE.au3> $username = "mylogin" $password = "mypassword" $oIE = _IECreate ("www.tribalwars.no", 0, 0, 1) ; get pointers to the login form and username, password ,signin fields and worldname $o_form = _IEFormGetObjByName ($oIE, "f1") $o_login = _IEFormElementGetObjByName ($o_form, "user") $o_password = _IEFormElementGetObjByName ($o_form, "password") $o_signin = _IEFormElementGetObjByName ($o_form, "submit") ;Then it need to select what world i want to login to, what would be value "no1" or text "Verden 1" ; Set field values and submit the form _IEFormElementSetValue ($o_login, $username) _IEFormElementSetValue ($o_password, $password) _IEAction ($o_signin, "submit") Can any one help me? Edited March 13, 2008 by Chris86 Link to comment Share on other sites More sharing options...
Aassdd Posted March 13, 2008 Share Posted March 13, 2008 at 16:00 the browser would go to "http://no1.tribalwars.no/game.php?village=18616&screen=main&action=build&id=barracks&h=3ae7"http://www.autoitscript.com/forum/index.ph...amp;hl=scheduleThen wait some seconds and wait for the next task.How long? Is it a specified sleep time? Or the script will wait for an action/statement? Link to comment Share on other sites More sharing options...
Chris86 Posted March 14, 2008 Author Share Posted March 14, 2008 No, its not sleep time. I want to have it like that i can set the clock time the script shall login and go to the page i want it to go to Link to comment Share on other sites More sharing options...
Aassdd Posted March 14, 2008 Share Posted March 14, 2008 Maybe the _Date commands help you? 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