automate an old school classic
Project description
pyautoeios
Work in progress port remote_input from https://github.com/Brandon-T/Reflection to python
Design decision was made to implements patches to https://github.com/asweigart/pyautogui/ and github.com/asweigart/pyscreeze so that the remote_input so that interface can be used.
Planned Features
- Works with python 3.8
- installable via pip
- Wraps well liked pyautogui interface
- Transparent Image finding when opencv is installed
- Injecting into multiple clients (so threads can be used for multi-boxing)
- no known memory leaks.
Backlog Features:
- More examples?
- Installs Dependancies for you (for now use the Pipfile)
- integration of color and other methods https://github.com/BenLand100/srbot/tree/master/srbot
- porting modules from https://github.com/SRL/SRL or https://github.com/ollydev/SRL-Development
- porting of "reflection" modules from https://github.com/Brandon-T/Reflection
Current demo:
import random
import getpass
from pyscreeze import Box
import pyautoeios as pyauto
def move_to_spot_in_box(box, **kwargs):
print(f"box = {box}")
if 'duration' not in kwargs:
kwargs['duration'] = random.uniform(0.3,1.1)
if 'tween' not in kwargs:
kwargs['tween'] = pyauto.easeOutQuad
cx,cy = pyauto.center(box)
x = random.randint(int(-1*(box.width/3)),int(box.width/3)) + cx
y = random.randint(int(-1*(box.height/3)),int(box.height/3)) + cy
print(f"x = {x}, y = {y}")
pyauto.moveTo(x, y, **kwargs)
def click_on_spot_in_box(box, **kwargs):
move_to_spot_in_box(box,**kwargs)
pyauto.click(**kwargs)
pyauto.inject_clients()
for client in pyauto.clients:
pyauto.pair_client(client)
click_on_spot_in_box(Box(left=398, top=271, width=148, height=40))
click_on_spot_in_box(Box(left=285, top=248, width=235, height=15))
pyauto.typewrite(getpass.getpass(), interval=0.3)
im = pyauto.screenshot()
im.show()
click_on_spot_in_box(Box(left=238, top=301, width=148,height=41))
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
pyautoeios-0.0.2.tar.gz
(1.1 MB
view details)
Built Distribution
File details
Details for the file pyautoeios-0.0.2.tar.gz
.
File metadata
- Download URL: pyautoeios-0.0.2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2185b5cea883715e4029ef83acba87ed09f785cd618a84b97f3b2afc02bd8a5 |
|
MD5 | 177d0531eddf0ee0e69550bd6edcd74f |
|
BLAKE2b-256 | 46efe4122b78d0541f46964ed3c120f3fb32306efd03cce336c3ddf562ff6e06 |
File details
Details for the file pyautoeios-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyautoeios-0.0.2-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38aa9a74a11039b4f7c3429a1a8880b150064af48e2d922ff8d1099138a51c48 |
|
MD5 | ebc94cb7616db87a057893208595500f |
|
BLAKE2b-256 | 58352313a44716b5563b747c4dabb02281ee0dd08d3e6a9ede23b2ba82c67243 |