Jump to content
Sign in to follow this  

Tribal Wars Bot

Recommended Posts


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>
$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
;Now logged in, time to start training units!
Edited by adz89

Self confessed noob...

Share this post

Link to post
Share on other sites

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.


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...

Share this post

Link to post
Share on other sites

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,

after the page is loaded is ridirects into a other page so you can't get the source
the only thing you have to do is get the source from
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
with autoit then i can make it work (replace world nl6 and village number IDwith your number)

Edited by infernothebest

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.