autoplayer for online multiplayer games?

so i’ve been thinking, could you not create a program that automatically plays a game for you over and over to gain you lots of points in order to get a desired outcome like being on the top scorers or getting a lot of points , for instance , superstar racing, you could make a program that does the racing for you while you are not at your computer so then i could get many many points so i could contribute highly to my online team? i get the feeling that other people do this kind of stuff and most of the time it makes me not wanna bother trying to get highscores or anything like that because i feel that lots of people could have used this cheat.

That’s botting. Many games have these and they have detection systems.
There are many epic botting wars going on between botting suppliers, creators, users and their games.

One epic battle still going on is between http://www.runescape.com and http://www.rsbot.org

Superstar Racing Secret Achievements