Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I begin learning to program bots?

I don't know what they're called but I want to learn to program bots that perform tasks within a game or software. But I have no idea how to even make a program that does stuff on other programs/software/games. Are their any good books on the subject?

If it makes a difference I'm using a Linux OS. I know Python and I began learning C recently.

Thanks!

like image 949
BLUC Avatar asked Oct 09 '22 04:10

BLUC


2 Answers

There are many tools for sending artificial input. My favorite one only works on Windows.

For the cross platform, including Linux, there is a library called autopy. As you can guess, it's a Python library and it allows you to access your keyboard and mouse through Python objects.

like image 140
Brigand Avatar answered Oct 24 '22 11:10

Brigand


If you want to automate requests and parsing, Python has packages urllib2 and BeautifulSoup (specifically for parsing).

like image 1
Adeel Avatar answered Oct 24 '22 12:10

Adeel