monkey patch that shit lib

This commit is contained in:
JerryXiao 2021-02-26 21:28:07 +08:00
parent 6da76dc344
commit 0d0a5bdc33
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -2,6 +2,10 @@ import pyautogui
import time import time
from PIL import ImageGrab from PIL import ImageGrab
# monkey patch
pyautogui.pyscreeze.ImageGrab = ImageGrab
pyautogui.pyscreeze.screenshot = pyautogui.pyscreeze._screenshot_win32
class lumberjackBot(): class lumberjackBot():
__author__ = "EnriqueMoran" __author__ = "EnriqueMoran"