well-c / image_autoclicks Goto Github PK
View Code? Open in Web Editor NEWPython script that automates mouse clicks using image detection in screen
Python script that automates mouse clicks using image detection in screen
Windows specifications:
Edition Windows 11 Enterprise
Version 23H2
Installed on 2024. 05. 13.
OS build 22631.3737
Experience Windows Feature Experience Pack 1000.22700.1009.0
pip install pyautogui keyboard numpy opencv-python
was executed successfullyProblem:
I get the following message whenever run the script:
Press 'Escape' to quit this application anytime
File: ./input_images\1_edge.png
Exception in thread Thread-1 (main):
Traceback (most recent call last):
File "C:\Users\Veil\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "C:\Users\Veil\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\Veil\Desktop\image_autoclicks\custom_automation.py", line 55, in main
ret = clickImage(file)
^^^^^^^^^^^^^^^^
File "C:\Users\Veil\Desktop\image_autoclicks\custom_automation.py", line 21, in clickImage
screen_img = pyautogui.screenshot()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Veil\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyautogui_init.py", line 228, in _couldNotImportPyScreeze
raise PyAutoGUIException(
pyautogui.PyAutoGUIException: PyAutoGUI was unable to import pyscreeze. (This is likely because you're running a version of Python that Pillow (which pyscreeze depends on) doesn't support currently.) Please install this module to enable the function you tried to call.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.