DO specific (key or mouse) clicks and/or simulate typing a string when some given picture is visible on SCREEN
Install with pip
pip install -r requirements.txt
On Linux you also need to install python3-tk:
Example for Ubuntu:
sudo apt-get install python3-tk
python doscreen.py
python3 doscreen.py
threshold
--> percentage of how similar the given picture must be to the image on the screen to trigger the assigned actions
click
--> normal left click
r_click
--> right click
dbl_click
--> double click
key
--> emulate pressing a key
type
--> emulate typing a string
- You can use the
do_sth.py
to test different actions - You can use the
recog_pics.py
to test the picture recognizion - You can use the
recog_pics.py
or thedoscreen.py
to test the picture recognizion and value for thethreshold
parameter - You can use the given example pics for all kinds of testing purposes as well