There are Addons in World of Warcraft which can be configured and scripted to advise players on which buttons to press.
The primary addon I'm thinking of is Ovale.
Ovale Spell Priority - Addons - Curse
It has an in-game scripting language that allows the addon to determine which ability you should be using at any given time. In order to do this, it shows the icon of the ability.
It's highly customisable - You can make the script show autoattack if you're in autoattack range, earth shock if you're not in autoattack range and even lightning bolt if you're not in earth shock range.
I was wondering about the viability of a bot that basically emulates a human - You point it to the part of the screen where Ovale is and assign it ability icons to look for. It will then facerolls the relevant keybinding associated with the icon while the icon is displayed.
This would be useful for automating abilities in PvP and PvE combined with Ovale's extensive scripting.
It wouldn't be intended to control your character, just to control the used abilites.
Is there anything currently existing that could provide a function like this?