autoit 0.2.1
pip install autoit==0.2.1
Newer version available (0.2.6)
Released:
Automate it with Python
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Lonami Exo
- Tags gui , mouse , keyboard , automation , automate
- Requires: Python >=3.5
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
Automate it with Python.
What is this?
This Python 3 package aims to help you automate several GUI actions easily through Python, like clicking, moving the mouse around, using the keyboard, etc.
How to install it?
pip install autoit
External requirements?
Linux, for now.
xdotool to do any ait operation.
Python’s Xlib to use ait.log (mouse/keyboard logger).
How does it look like?
import ait
# Click wherever the mouse is
ait.click()
# Click with the right mouse button
ait.click('R')
# Click at some position
ait.click(140, 480)
# Click in the center of the screen with the middle button
ait.click(0.5, 0.5, 'M')
# Click 10 pixels below
ait.click(0j, 10j)
# Movement (absolute, percentage and relative) can also be done
ait.move(140, 480)
ait.move(0.5, 0.5)
ait.move(60j, -9j)
# Mouse position can also be retrieved
x, y = ait.mouse()
# Pressing keys can also be done
ait.press('q', '!', '\n') # Exit vim
ait.press(*'\b' * 10) # 10 carriage returns
# Writing things with the keyboard too
ait.write('Hello world!\n')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Lonami Exo
- Tags gui , mouse , keyboard , automation , automate
- Requires: Python >=3.5
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
File details
Details for the file autoit-0.2.1.tar.gz
.
File metadata
- Download URL: autoit-0.2.1.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
98760ae851f29fc3ff7cf6c7a42b3f5da2556b1ffbc851fd940b96302a6c2cdb
|
|
MD5 |
6b1d07c91d978dbc00a300515902212a
|
|
BLAKE2b-256 |
373e10a2158abc778a616ef80ab298930515f5d30b372070c1a8104b0ce04847
|