auto control alpha 0.0.20
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.0.tar.gz
(65.8 kB
view details)
Built Distribution
File details
Details for the file je_auto_control-0.0.0.tar.gz
.
File metadata
- Download URL: je_auto_control-0.0.0.tar.gz
- Upload date:
- Size: 65.8 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 | ae2e78664f2b52886e26636e33c46b1e85a8bb55ce0e7ac1b42b0aa8ac21d933 |
|
MD5 | 96002cd0ff7db21248104a1b9832c0bf |
|
BLAKE2b-256 | c3e73b027848882a65a4dcc68bc71ce24c706d30361f9a17ddb5460f3a69b3f9 |
File details
Details for the file je_auto_control-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: je_auto_control-0.0.0-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 | fa2db344509f6f0850215e4ece0689f581e3c4cde297daff92162db6264abc96 |
|
MD5 | 08963952edc4732f984ae8e136dda662 |
|
BLAKE2b-256 | 2493258ee7830a969cb483c3adb1f2e9473a5f65d46c091b4ec1446988de88d0 |