asweigart / pyscreeze

PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3.
BSD 3-Clause "New" or "Revised" License
193 stars 96 forks source link

Add param for locateOnWindow #125

Open bird00101011 opened 4 months ago

bird00101011 commented 4 months ago

For example, when I open both counter-strike and counter-strike 2 windows, then locateOnWindow will have a problem, saying, find multiple windows, actually I match the string is counter-strike, but I find counter-strike and counter-strike 2, I need to match the previous one, find a one with 2 does not need, So I added a function argument, and after testing it on my local computer, it solved the problem.