Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (27 sloc) 907 Bytes
import pyautogui
import pytesseract
from PIL import Image
import time
# It's not advised to use while loop
# There is a built-in mechanism in pyautogui to terminate program if we
# move our cursor to top left. This will cause program to break
while True:
# region may vary for different screen
im = pyautogui.screenshot(region=(232, 279, 835, 106))'data.png')
# To click text area and start typing, y=425)
# To get text from given image
value = pytesseract.image_to_string('data.png'))
# To replace new line from it and make one clean list
value = value.replace('\n\n',' ')
b = value.split(' ')
# Backspace is used to avoid any error
for i in b:'backspace')
if len(b) <= 4: