Skip to main content

Python binding for AutoItX3.dll

Project description

Python binding for AutoItX3.dll

Installing

If you have pip on your system, you can simply install or upgrade PyAutoIt:

pip install -U pyautoit

Alternately, you can download the source distribution from PyPI, unarchive it, and run:

python setup.py install

Example

  • open notepad

  • type some string into notepad, eg: “hello world”

  • close notepad without saving

import autoit

autoit.run("notepad.exe")
autoit.win_wait_active("[CLASS:Notepad]", 3)
autoit.control_send("[CLASS:Notepad]", "Edit1", "hello world{!}")
autoit.win_close("[CLASS:Notepad]")
autoit.control_click("[Class:#32770]", "Button2")

Supported by

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