I found it easier to write bot in Visual Basic.

I recently found a book that taught the basic of botting for Windows applications and Games.



If your interested check out the book called "Bot Programming: Intelligent Automation For Windows Applications And Games" at https://www.createspace.com/3488344

It has a project where you automate windows pinball to do pixel recognition and send keystokes or automate mouse clicks to continously play non stop. I left it run over night and it scored over 5 million on pinball.

Just my two cents.