Skip to main content

auto control gui

Project description

je_auto_control

install

pip install je_auto_control

Info

  • Python & pip require version

    • Python 3.5 & up
    • pip 19.3 & up
  • 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

    • if you want to run image test then change default image path to your image path
    • use x11 os like ubuntu need to update pillow

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.26.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

je_auto_control-0.0.26-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file je_auto_control-0.0.26.tar.gz.

File metadata

  • Download URL: je_auto_control-0.0.26.tar.gz
  • Upload date:
  • Size: 20.6 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

Hashes for je_auto_control-0.0.26.tar.gz
Algorithm Hash digest
SHA256 75efbe081864fe6dd4b870612fadf5cd949c15b17d7abccce2010284d1875c90
MD5 60707b6fd27ce6055aa047738a9e493a
BLAKE2b-256 0c59e68de7d1a40ea8bc0a4ec591070445b3ed8fc470d8bfb66fe5b7f2a39cf2

See more details on using hashes here.

File details

Details for the file je_auto_control-0.0.26-py3-none-any.whl.

File metadata

  • Download URL: je_auto_control-0.0.26-py3-none-any.whl
  • Upload date:
  • Size: 32.7 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

Hashes for je_auto_control-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 46cb205e58db4dc0a40daedf174d154eeacedea157187786bdf268800755d228
MD5 695c22d51119fdbfbf326c3d85cb7cc5
BLAKE2b-256 e523059f16e4bb9d56a11d85430a7f8b0c3784cc24e0e186ee122f9a3a94762c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page