Skip to main content

Script mouse and keyboard actions via xautomation in GNU/Linux

Project description

Python wrapper around xautomation because Python is disco super-fly. You can use this to script mouse and keyboard actions in GNU/Linux.

Requirements

This requires xautomation to be installed (duh this is a wrapper don’t be a goofball).

Usage

Predestinate has been used in my own tests to great effect, and was just implemented tonight (2013-07-25) to provide mouse movement with finger motions via the LEAP Motion controller by a hacker who goes by “dgonyeo”.

I’d like to spend more time on documentation and whatnot, but am under the weight of other projects at the moment. I can tell you that you can implement it quite easily by taking a quick look at the code and comments to see what methods you can call. Looking at man xte can also be of great use, especially to get the names of keys. Remember, you do need to have xautomation installed for Predestinate to work.

You can start using Predestinate quite easily like so:

from predestinate import MouseGod
mg = MouseGod()
mg.move(100, 200) # And much more!

from predestinate import KeyGod
kg = KeyGod()
kg.key('Escape') # And much more!

I’ll be expanding this documentation much more in the future, especially as I complete my summer internship. Thanks for checking it out! Feel free to ask questions and open tickets for bugs and feature requests. I appreciate it. :)

License

Predestinate is relased under the GPLv3+ license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predestinate-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file predestinate-0.1.0.tar.gz.

File metadata

File hashes

Hashes for predestinate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23fae263d2d2790f86d5f9118437f04fd5b1cb2b766838b23fd38ae6cf73c08e
MD5 599a8d7c0515bcd77ea5455345f9b2e2
BLAKE2b-256 ad453fc2a2d174a730b588d331e46b3660783daba9583663b5216e41a283e57c

See more details on using hashes here.

Provenance

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