This question has already been answered:
- Finding numbers in the picture 1 answer
How to recognize numbers on a c # image? In general, you need to parse the entire desktop (screen), if you find the number "1", then take its coordinates and rearrange the mouse to this place, with the number "2" and other action figures are the same.