diff --git a/main.py b/main.py index 7d13d78..50fdf67 100644 --- a/main.py +++ b/main.py @@ -11,6 +11,9 @@ import cv2 import pygetwindow as gw import numpy as np import pyautogui + +# Disable the PyAutoGUI fail-safe feature. +pyautogui.FAILSAFE = False from pynput import keyboard import tkinter as tk from PIL import ImageGrab, Image, ImageTk