S
S
Snoppybot2021-12-06 14:41:11
Python
Snoppybot, 2021-12-06 14:41:11

How to pull out a piece of Windows window for Tesseract?

I need that when I have 1-35% hp left in the game, write the /homefast command to the chat. I want to make the bot pull out numbers from the lower left corner of the screen and recognize them (where is the red Hp bar) 61adf647da3a1359514383.png. He can write a command to the chat, but I don’t know how to make it recognize NUMBERS (namely, numbers, because only they will be there) and when he sees 1-35% HP, he used the AHK module to send "/homefast" to the chat

Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-12-06
@rPman

rect = ((10, 10), (1, 1))
autopy.bitmap.capture_screen( rect )
press buttons

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question