An online game, Kings of Chaos, allows users to advance by growing their army size, which in turn is done by "clicking," usually withing software called "Recruiters." In order to click once, a user must match a character formed in a graphic to one of 9 letters on the keyboard, and then they move on to entering the next graphic character, and so on. Should the user get one wrong, they need to complete a reCAPTCHA screen, and can then continue to match characters, "clicking" as per usual.
I'd like to use OCR technology to automate this process within one of the recruiters, called YAR (more specifically, Eric's Modified YAR, a guide and download to which can be found here: [url removed, login to view]). YAR is a Firefox/Greasemonkey based recruiter, and it'd be highly preferable for this to somehow be based in Firefox, or at least use it - Kings of Chaos *has* to be loaded in a common browser, such as Firefox or IE, or it assumes you're cheating and bans you.
I'd also want it to be able to slightly vary in the amount of time between characters typed (say, a random amount of time between 0.2 and 1 seconds between "clicks") to simulate human activity. As this tool would be used to effectively cheat, keeping it undetectable is a priority.
So, to recap: I want to use OCR technology to automatically type the letters seen in both the Kings of Chaos internal system and the reCAPTCHA system should the OCR get a character wrong, using the mentioned version of YAR and Firefox, while appearing in server logs as though it were a human at the controls the whole time.
I've attached a copy of a standard KoC recruit/click image - for that one, the correct letter to type would be h (it's not case sensitive).
PS - If possible, I'd like it to require a username and password to be entered before software ran at all, checking the username and encrypted password against a website I'd provide (ex. [url removed, login to view];password=md5), which would display a positive or negative result that'd determine if the software worked for the user, as to prevent unauthorized use. If this significantly increases the price, I'd rather leave this feature out.