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 image detect test path, change it to your image path
TODO
- wrapper
- exception
- more feature
example
- All test in test dir
Windows
mouse
import time
from je_auto_control import win32_ctype_mouse_control as mouse_control
from je_auto_control.windows.mouse import win32_mouse_left
from je_auto_control.windows.mouse import win32_mouse_right
time.sleep(1)
print(mouse_control.position())
mouse_control.set_position(809, 388)
mouse_control.press_mouse(win32_mouse_right)
mouse_control.release_mouse(win32_mouse_right)
mouse_control.press_mouse(win32_mouse_left)
mouse_control.release_mouse(win32_mouse_left)
mouse_control.click_mouse(win32_mouse_left)
keyboard
from je_auto_control import win32_keyT
from je_auto_control import win32_keyE
from je_auto_control import win32_keyS
from je_auto_control import win32_ctype_keyboard_control as keyboard_control
keyboard_control.press_key(win32_keyT)
keyboard_control.press_key(win32_keyE)
keyboard_control.press_key(win32_keyS)
keyboard_control.press_key(win32_keyT)
screen
from je_auto_control import win32_screen
print(win32_screen.size())
scroll
import time
from je_auto_control import win32_ctype_mouse_control as mouse_control
time.sleep(3)
print(mouse_control.position())
mouse_control.scroll(500)
Linux
mouse
from je_auto_control import x11_linux_mouse_control as linux_mouse
from je_auto_control import x11_linux_mouse_right
print(linux_mouse.position())
linux_mouse.set_position(100, 100)
print(linux_mouse.position())
linux_mouse.click_mouse(x11_linux_mouse_right)
keyboard
import time
from je_auto_control import x11_linux_keyboard_control as linux_keyboard
from je_auto_control import x11_linux_key_t
from je_auto_control import x11_linux_key_e
from je_auto_control import x11_linux_key_s
linux_keyboard.press_key(x11_linux_key_t)
linux_keyboard.release_key(x11_linux_key_t)
time.sleep(.01)
linux_keyboard.press_key(x11_linux_key_e)
linux_keyboard.release_key(x11_linux_key_e)
time.sleep(.01)
linux_keyboard.press_key(x11_linux_key_s)
linux_keyboard.release_key(x11_linux_key_s)
time.sleep(.01)
linux_keyboard.press_key(x11_linux_key_t)
linux_keyboard.release_key(x11_linux_key_t)
screen
from je_auto_control import x11_linux_screen
print(x11_linux_screen.size())
scroll
import time
from je_auto_control import x11_linux_mouse_control as linux_mouse
from je_auto_control import x11_linux_scroll_direction_down
from je_auto_control import x11_linux_scroll_direction_up
linux_mouse.scroll(5, x11_linux_scroll_direction_down)
time.sleep(1)
"""
this block just scroll test use
"""
linux_mouse.scroll(5, x11_linux_scroll_direction_up)
OSX
mouse
from je_auto_control import osx_mouse
from je_auto_control import osx_mouse_right
osx_mouse.click_mouse(500, 100, osx_mouse_right)
print(osx_mouse.position())
keyboard
from je_auto_control import osx_keyboard
from je_auto_control import osx_key_t
from je_auto_control import osx_key_e
from je_auto_control import osx_key_s
osx_keyboard.press_key(osx_key_t, False)
osx_keyboard.press_key(osx_key_e, False)
osx_keyboard.press_key(osx_key_s, False)
osx_keyboard.press_key(osx_key_t, False)
screen
from je_auto_control import osx_screen
print(osx_screen.size())
scroll
from je_auto_control import osx_mouse
osx_mouse.scroll(100)
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.22.tar.gz
(19.0 kB
view details)
Built Distribution
File details
Details for the file je_auto_control-0.0.22.tar.gz
.
File metadata
- Download URL: je_auto_control-0.0.22.tar.gz
- Upload date:
- Size: 19.0 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 | 634037408c6bcc78ba267b2615e082d9af403cadd28c5ff8c99f7a69aecbabef |
|
MD5 | dbc729629fdf3f531a0e93864e5b8656 |
|
BLAKE2b-256 | d8625ef8be45f6e51345808d8b50a7a3a521fef005b297b128bb874446064f07 |
File details
Details for the file je_auto_control-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: je_auto_control-0.0.22-py3-none-any.whl
- Upload date:
- Size: 28.9 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 | a48cc985e4ba9ea31868090c59bc3a7dd99e2a81ea036d302b5a57d8964973f8 |
|
MD5 | 5c128728b781335b9bfc7e7c3d77933b |
|
BLAKE2b-256 | 1adff5a1261234c0ab86ae5d19f10afeb464cd622e1cd3bdbaffe76007fd5396 |