在gnu/linux中通过xautomation编写鼠标和键盘操作脚本
predestinate的Python项目详细描述
Author: | David Gay <oddshocks@riseup.net> |
---|
python包装xautomation,因为python是disco超级fly。 您可以使用它在gnu/linux中编写鼠标和键盘操作的脚本。
要求
这需要安装xautomation(duh this is a wrapper don't 做个傻瓜)。
安装
您可以通过pip从pypi安装predestinate,如下所示:
pip install predestinate
用法
在我自己的测试中使用了宿命,效果很好, 今晚(2013-07-25)刚刚实施,提供鼠标移动 通过“dgonyeo”的黑客通过LEAP Motion controller移动手指。
我想把更多的时间花在文件和其他方面,但是 在目前其他项目的压力下。我可以告诉你 你可以很容易地实现它 查看可以调用哪些方法的代码和注释。看 atman xte也很有用,特别是在 钥匙的名称记住,do需要有xautomation 为预定工作而安装。
你可以很容易地开始使用predestinate,就像这样:
frompredestinateimportMouseGodmg=MouseGod()mg.move(100,200)mg.move(10,30,relative=True)# And much more!frompredestinateimportKeyGodkg=KeyGod()kg.key_down('Escape')# And much more!
我将在未来扩展这个文档, 尤其是在我完成暑期实习的时候。谢谢你 看看!请随意提问和开罚单 用于错误和功能请求。我很感激。:)
许可证
根据gplv3+许可证,predestinate是相关的。