From 0d0a5bdc33c644396f3f9dfb5eb6859ed71db7ed Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 26 Feb 2021 21:28:07 +0800 Subject: [PATCH] monkey patch that shit lib --- lumberjackBot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lumberjackBot.py b/lumberjackBot.py index 52d76d4..37f8e56 100644 --- a/lumberjackBot.py +++ b/lumberjackBot.py @@ -2,6 +2,10 @@ import pyautogui import time from PIL import ImageGrab +# monkey patch +pyautogui.pyscreeze.ImageGrab = ImageGrab +pyautogui.pyscreeze.screenshot = pyautogui.pyscreeze._screenshot_win32 + class lumberjackBot(): __author__ = "EnriqueMoran"