Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyscreeze/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,11 @@ def locateCenterOnScreenNear(image, x, y, **kwargs):


@requiresPyGetWindow
def locateOnWindow(image, title, **kwargs):
def locateOnWindow(image, title, equal_or_in='in', **kwargs):
"""
TODO
"""
matchingWindows = pygetwindow.getWindowsWithTitle(title)
matchingWindows = pygetwindow.getWindowsWithTitle(title, equal_or_in=equal_or_in)
if len(matchingWindows) == 0:
raise PyScreezeException('Could not find a window with %s in the title' % (title))
elif len(matchingWindows) > 1:
Expand Down