## Recommended Posts

If i was making a Bot for a game, is it possible to make the Bot read text that appears on the screen. If so, how?

##### Share on other sites

Yes.

What I did was make a grid system out of each line and character. I then took the top-left most coordinate of each character and made an individual set of coordinates for each pixel in that character:

`"0,-1;-1,0;-1,-1;-7,0;-7,-1;"`

Which is 'A' in the game I play.

I'm not sure if I did it the best way possible, but here's the source.

Edited by Insolence

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do \$var_"Doctor: "Don't do \$var_" - Lar.

##### Share on other sites

Yes.

What I did was make a grid system out of each line and character.  I then took the top-left most coordinate of each character and made an individual set of coordinates for each pixel in that character:

`"0,-1;-1,0;-1,-1;-7,0;-7,-1;"`

Which is 'A' in the game I play.

I'm not sure if I did it the best way possible, but here's the source.

<{POST_SNAPBACK}>

I'm confused. Can you please elaborate?

From the book of AutoElectric"Do not accuse another man, without proof, or you too will be accused", Morals 4:21The book of AutoElectric is MY book of morals, and follows biblical teachings.

##### Share on other sites

I'll diagram it:

1) Find the text

2) Find each line

3) Find each character

4) Start point of black pixel coordinates

5) Record each black pixel

Edited by Insolence

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do \$var_"Doctor: "Don't do \$var_" - Lar.

## Create an account

Register a new account

×

• Wiki

• Back

• Git