Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fx-kirin/python-autoaction
Automate GUI control in Python on Linux
https://github.com/fx-kirin/python-autoaction
Last synced: about 1 month ago
JSON representation
Automate GUI control in Python on Linux
- Host: GitHub
- URL: https://github.com/fx-kirin/python-autoaction
- Owner: fx-kirin
- Created: 2014-12-26T12:01:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-27T11:21:25.000Z (about 10 years ago)
- Last Synced: 2023-02-26T18:36:20.465Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Automate GUI control in Python.
============## License and copyright ##
Autoaction is licensed under the GNU LGPL## Example Code ##
import os
from autoaction import Autoaction
if __name__ == "__main__":
file_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "images")
# Set the image directory
auto = Autoaction(file_dir)
# click_image() will click the image on the screen
# x, y is the width from the matching point.
auto.click_image("firefox_icon.png", x=5, y=5)
auto.sleep(3)
auto.click_image("search.png", x=5, y=5)
auto.sleep(1)
# type() will type the keyboard following the input string.
# When you input array string, you can use special keys.
auto.type(["python-autoaction", ""])