I am trying to locate the cordinates of an image with locateOnWindow()
position = pt.locateOnWindow(image, 'Discord', grayscale=True, confidence=.9)
I get this error and the discord window icon turns into orange. Picture
raise PyGetWindowException('Error code from Windows: %s - %s' % (errorCode, _formatMessage(errorCode))) pygetwindow.PyGetWindowException: Error code from Windows: 0 - The operation completed successfully.
