I run a s that scans part of my screen and when it finds the image i'm looking for it strikes down a key .
The problem is that it's so slooooow and i want it to run 5x faster at the very least
I use the pyautogui
Here is what my script looks like :
while 1:
if pyautogui.locateOnScreen('Transaction success.png',region=(5,5,60,60), grayscale=True, confidence=0.70) != None:
pyautogui.press('n')
print("transaction succesful ...")
else:
print("Scanning...")
please help if you can