|alimiracle d737c16bee screen_search||1 year ago|
|screen_search||1 year ago|
|LICENSE.txt||1 year ago|
|MANIFEST.in||1 year ago|
|README.md||1 year ago|
|setup.py||1 year ago|
screen_search is small python library use to Searchs for an image on the screen
to install the library type in your Terminal
pip install screen_search
screen_search supports Python 2 and 3. If you are installing screen_search from PyPI using pip: Windows has no dependencies. The Win32 extensions do not need to be installed. OS X needs the pyobjc-core and pyobjc module installed (in that order). Linux needs the python3-xlib (or python-xlib for Python 2) module installed. Pillow needs to be installed, and on Linux you may need to install additional libraries to make sure Pillow's PNG/JPEG works correctly.
this is simple example of looking for a picture on the screen and moving the pointer to it.
from screen_search import * # Search for the github logo on the whole screen # note that the search only works on your primary screen. search = Search("github.png") pos = search.imagesearch() if pos != -1: print("position : ", pos, pos) pyautogui.moveTo(pos, pos) else: print("image not found")