adz89 Posted August 13, 2008 Posted August 13, 2008 (edited) Im trying to make a bot for Tribal Wars, I know their not allowed, but I don't care.... Anyway, I've got some of the basic scripting sorted, but i've got to the stage where I need to click on a link in the form of a picture, I'm not sure where how to actually find the link, I don't think its a form, it could be javascript. Can anyone help me? Here's my script, so far; #include <IE.au3> #RequireAdmin $oIE = _IECreate("www.tribalwars.net") ;Get pointers to the fields $oForm = _IEFormGetCollection($oIE, 0) $oUser = _IEFormElementGetCollection($oForm,0) $oPassword = _IEFormElementGetCollection($oForm,2) $oWorld = _IEFormElementGetCollection($oForm,3) $oLogin = _IEFormElementGetCollection($oForm,4) ;Set Field Values & Click Login button _IEFormElementSetValue($oUser,"USER") _IEFormElementSetValue($oPassword,"PASS") _IEFormElementSetValue($oWorld,"en18") _IEAction($oLogin,"click") ;Now logged in, time to start training units! Edited August 13, 2008 by adz89 Self confessed noob...
Triblade Posted August 13, 2008 Posted August 13, 2008 First of all, if that's your real password, I would hide it if I where you... Second, You should get come pixel information about the point you want to click on. Then find it and click on those coordinates. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger)
adz89 Posted August 13, 2008 Author Posted August 13, 2008 First of all, if that's your real password, I would hide it if I where you...Second, You should get come pixel information about the point you want to click on. Then find it and click on those coordinates.Thanks,When you say pixel information, what do you mean? I've got Debug Bar, how would I use it to find the pixel information?Thanks in advance for your patience, I may sound stupid, but I've never done any kind of programming before I found AutoIT!! Self confessed noob...
realkiller Posted August 13, 2008 Posted August 13, 2008 iam going to help you asswell this game rules:D do you got msn? Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
infernothebest Posted August 14, 2008 Posted August 14, 2008 (edited) oke i had the idea use the source html code the only problem is tribal wars wan't to encrypt it. the original source with everything in it is, http://nl6.tribalwars.nl/game.php?village=ID&screen=main after the page is loaded is ridirects into a other page so you can't get the source http://nl6.tribalwars.nl/staemme.php?village=ID&screen=main the only thing you have to do is get the source from http://nl6.tribalwars.nl/game.php?village=ID&screen=main i try to get it everytime you logg in you get a difrend id, and i did it manualy with autoit i didn't get it so if anyone knows how to get the source code from http://nl6.tribalwars.nl/game.php?village=ID&screen=main with autoit then i can make it work (replace world nl6 and village number IDwith your number) Edited August 14, 2008 by infernothebest Apple Keybord shortcuts for XP
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