auto control gui
Project description
je_auto_control
install
pip install je_auto_control
Info
- Dev env
- windows 11
- osx 11 big sur
- ubuntu 20.0.4
- Test on
- windows 11
- osx 11 big sur
- ubuntu 20.0.4
- Notice! change image detect test default path to your image path
TODO
- more feature
example
- All test and example in test dir
how to use
keyboard
import time
from je_auto_control import type
from je_auto_control import keys_table
"""
check keys
"""
print(keys_table.keys())
"""
Linux in every type and press then release need stop 0.01 time in my computer,i'm not sure it's right?
example:
type("T")
time.sleep(0.01)
type("E")
time.sleep(0.01)
type("S")
time.sleep(0.01)
type("T")
time.sleep(0.01)
or:
press_key("T")
release_key("T")
time.sleep(0.01)
"""
type("T")
type("E")
type("S")
type("T")
mouse
import time
from je_auto_control import position
from je_auto_control import set_position
from je_auto_control import press_mouse
from je_auto_control import release_mouse
from je_auto_control import click_mouse
from je_auto_control import mouse_table
time.sleep(1)
print(position())
set_position(809, 388)
print(mouse_table.keys())
press_mouse("mouse_right")
release_mouse("mouse_right")
press_mouse("mouse_left")
release_mouse("mouse_left")
click_mouse("mouse_left")
scroll
from je_auto_control import scroll
scroll(100)
screen
from je_auto_control import size
print(size())
locate image
import time
from je_auto_control import locate_image_center
time.sleep(2)
# detect_threshold 0~1 , 1 is absolute equal
image_data = locate_image_center("../../../test_template.png", detect_threshold=0.9, draw_image=False)
print(image_data)
locate all image
import time
from je_auto_control import locate_all_image
time.sleep(2)
# detect_threshold 0~1 , 1 is absolute equal
image_data = locate_all_image("../../../test_template.png", detect_threshold=0.9, draw_image=False)
print(image_data)
locate and click image in center
import time
from je_auto_control import locate_and_click
time.sleep(2)
# detect_threshold 0~1 , 1 is absolute equal
image_data = locate_and_click("../../../test_template.png", "mouse_left", detect_threshold=0.9,
draw_image=False)
print(image_data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
je_auto_control-0.0.25.tar.gz
(19.3 kB
view details)
Built Distribution
File details
Details for the file je_auto_control-0.0.25.tar.gz
.
File metadata
- Download URL: je_auto_control-0.0.25.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59fd44868b2baad9234437794691886660097639cacfe989762631dae95e0b7e |
|
MD5 | c09f9b68c4934d6335616bbe2f7ba3a2 |
|
BLAKE2b-256 | 5c1b3f20dcdf9dd64065f5514e6a926ce8996388a73996a68c4c7657d71aedff |
File details
Details for the file je_auto_control-0.0.25-py3-none-any.whl
.
File metadata
- Download URL: je_auto_control-0.0.25-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa2a3f7c764bc43e99b2e74accfae82fa744a9479dd041c5850224cd004d519 |
|
MD5 | 751e7f16d83f8fc4befd07db717590cc |
|
BLAKE2b-256 | b4d65fceb7e14db4cd5c4d89795a2bec1c65dc7d870a7edb818c710d813033de |