asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Mask region to search using locateOnScreen() #664

Open h4nsgd opened 2 years ago

h4nsgd commented 2 years ago

I have two regions, A and B, that intersect each other and are squares. I want to search an image in A - B (part of A that doesnt belong to B). Is this possible at the moment with pyautogui?