用python实现自动化

autoit的Python项目详细描述


用python实现自动化。

这是什么?

这个python 3包旨在帮助您自动化几个gui操作 很容易通过python,比如点击,移动鼠标,使用 键盘等。

看起来怎么样?

importait# Click wherever the mouse isait.click()# Click with the right mouse buttonait.click('R')# Click at some positionait.click(140,480)# Click in the center of the screen with the middle buttonait.click(0.5,0.5,'M')# Click 10 pixels belowait.click(0j,10j)# Movement (absolute, percentage and relative) can also be doneait.move(140,480)ait.move(0.5,0.5)ait.move(60j,-9j)# Mouse position can also be retrievedx,y=ait.mouse()# Pressing keys can also be doneait.press('q','!','\n')# Exit vimait.press(*'\b'*10)# 10 carriage returns# Writing things with the keyboard tooait.write('Hello world!\n')

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java中ArrayList的超简单问题   Java 8在一段时间后过期   java如何创建具有用户定义维度的矩阵,并使用从上到下、从左到右的递增值填充它?   java从JDBC重启mysql   带有sqlite的java LiveData未更新UI   带有JDialog的java小程序在Mac OSX中未正确隐藏   java ActionListener无法从公共类引用数组?   java Apache Digester:NoSuchMethodException:没有这样的可访问方法   安卓中数据库中的java数据没有以正确的格式检索   java快速排序实现:使用random pivot时几乎排序   安卓 Java:高效的ArrayList过滤?   java如何在单独的文件中制作GUI程序   jasper报告如何从JSP或Java代码在JasperReport中传递参数值?