title: how to build a bot for on-line flash game?
body: <p>there are a lot of flash games that ask u to do repetitive actions. an example would be FarmVille or getting statistics on on-line poker game. </p>
  
  <p>What is the best way to create an interface between what you see on the screen, a bot's algorithm and clicking of the mouse. </p>
  
  <p>so basically, when i'm playing a texas hold'em on face book and if i get AA i want the bot to click all-in. if i don't get AA i want to fold. this is just an example, not the actual strategy. or another examples would be routing tasks in farmville.</p>
  
  <p>so basically. it has to grab a picture of the screen. recognize patterns and convert them into an input of the algorithm. the output algorithms would be clicking on some other (may be same) patterns.</p>
  
  <p>any suggestions?</p>