python autopy

今天学习了python autopy

主要包括alert,color,mouse,key,bitmap,screen等的操作

文档在http://www.autopy.org/documentation/api-reference/

下好包

简单功能

提示框

import autopy

autopy.alert.alert('hello world')

鼠标

from autopy import mouse

mouse.move(1,1)
mouse.click(mouse.LEFT_BUTTON)

键盘 敲左箭头

from autopy import key

key.tap(key.KEY_LEFT)

截屏

import autopy

autopy.bitmap.capture_screen().save('screen.png')
原文地址:https://www.cnblogs.com/sunproudcoding/p/3388070.html