Skip to main content

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?

  • Windows, or

  • Linux

    • 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 backspaces
# Writing things with the keyboard too
ait.write('Hello world!\n')

Release files for autoit 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoit 0.2.6
File Size Uploaded
autoit-0.2.6.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoit 0.2.6
File Interpreter ABI Platform
autoit-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / autoit-0.2.6.tar.gz

Download URL autoit-0.2.6.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c27d1f160ac8d4777f9d39228f5e16eb10daf7e2517c70d561835e154a1d68
BLAKE2b-256 checksum
How to use checksums
80f8ad6a91cbeda01619865c96fa3254bbb1db3e1f6b42a6e6c6a415d75bbae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / autoit-0.2.6-py3-none-any.whl

Download URL autoit-0.2.6-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29fc0bb71274f5bbe1b5565e926be7d71f270ae850079d83c98d5a13724f31f8
BLAKE2b-256 checksum
How to use checksums
e4cb973d4ade351cd9f880c38fec49a71e0957298f834d15aee35998cb928fce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page