title: Improve pyautogui.press speed
body: <p>I am writing an auto typing bot for 10fastfingers.com. It works.</p>
  
  <p>I'm using pytesseract library to find text after that I use pyautogui to press key.
  I recognize that pyautogui.press is not so fast.</p>
  
  <p>And I am finding something like pyautoguide.press but having good speed.
  Like <a href="https://vimeo.com/352072921" rel="nofollow noreferrer">this video</a></p>
  
  <pre><code>from PIL import Image
  import pyautogui
  import time
  import cv2
  import pytesseract
  
  
  class Cordinates():
      textbox = (80, 275)
      replayBtn = (800,450)
      whereitype = (250,460)
  def restartGame():
      pyautogui.click(Cordinates.replayBtn)
  
  
  def main():
      restartGame()
      time.sleep(0.5)
      pyautogui.click(Cordinates.whereitype)
      while True:
          pyautogui.screenshot('image.png')
          img = cv2.imread("image.png")
          crop_image = img[320:370, 80:940]
          cv2.imshow("cropped", crop_image)
          cv2.imwrite('cropped.png',crop_image)
          text = pytesseract.image_to_string(crop_image, lang='eng')
          for c in text:
              print(c)
              if c == 'enter':
                      c=' '
              pyautogui.press(c)
              if pyautogui.position() == (1, 1):
                  exit()
          pyautogui.press(' ')
  
  main()
  </code></pre>